Skip to content

Commit

Permalink
fix: init
Browse files Browse the repository at this point in the history
  • Loading branch information
levovix0 committed Aug 7, 2022
1 parent 2792e06 commit 8f5d3bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/siwin/window.nim
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ when defined(linux):
result.id = n.cint
result.handle = display.ScreenOfDisplay(result.id)

proc defaultScreen*(): Screen = screen(display.DefaultScreen.int)
proc defaultScreen*(): Screen =
x.init()
screen(display.DefaultScreen.int)
proc screen*: Screen = defaultScreen()

proc n*(a: Screen): int = a.id.int
Expand Down

0 comments on commit 8f5d3bd

Please sign in to comment.