Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
X11 screens need names in the contructor (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJAllan authored Mar 23, 2023
1 parent 8848079 commit 049dbe5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Desktop/BaseOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion Overlays/XorgScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 049dbe5

Please sign in to comment.