From e5d7daccb93df313fff3b031178f35b0f657f57f Mon Sep 17 00:00:00 2001 From: Wesley Kerfoot Date: Thu, 20 Aug 2020 00:10:22 -0400 Subject: [PATCH] fix struts resize --- src/nimwin.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nimwin.nim b/src/nimwin.nim index 3304821..7d83c69 100644 --- a/src/nimwin.nim +++ b/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)