Browse Source

fix struts resize

master
Wesley Kerfoot 4 years ago
parent
commit
e5d7daccb9
  1. 4
      src/nimwin.nim

4
src/nimwin.nim

@ -599,7 +599,7 @@ when isMainModule:
discard XMoveResizeWindow(display,
ev.xKey.subWindow,
struts.bottom.cint, struts.top.cint,
0, struts.top.cint,
screenWidth.cuint, screenHeight.cuint - struts.top.cuint - struts.bottom.cuint)
@ -654,7 +654,7 @@ when isMainModule:
discard XMoveResizeWindow(display,
ev.xmap.window,
struts.bottom.cint, struts.top.cint,
0, struts.top.cint,
screenWidth.cuint, screenHeight.cuint - struts.top.cuint - struts.bottom.cuint)
discard display.XSetInputFocus(ev.xmap.window, RevertToPointerRoot, CurrentTime)

Loading…
Cancel
Save