diff --git a/Desktop/BaseOutput.cs b/Desktop/BaseOutput.cs index 153ce44..e00948e 100644 --- a/Desktop/BaseOutput.cs +++ b/Desktop/BaseOutput.cs @@ -7,6 +7,11 @@ public class BaseOutput public string Name { get; set; } = null!; public Vector2Int Position { get; set; } public Vector2Int Size { get; set; } + + public BaseOutput() { } + public BaseOutput(string name) { + Name = name; + } public override string ToString() { diff --git a/Overlays/XorgScreen.cs b/Overlays/XorgScreen.cs index 2b6b43a..0b3e034 100644 --- a/Overlays/XorgScreen.cs +++ b/Overlays/XorgScreen.cs @@ -23,7 +23,7 @@ public static int NumScreens() private readonly IntPtr _handle; private readonly uint _bufSize; - public XorgScreen(int screen) : base(new BaseOutput()) + public XorgScreen(int screen) : base(new BaseOutput(screen.ToString())) { Vector2Int size = new(), pos = new();