summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkitty piapiac <kcp@bsd.computer>2020-07-31 04:50:15 -0700
committerkitty piapiac <kcp@bsd.computer>2020-07-31 04:50:15 -0700
commit986002e778d7591e75014fd1e439bade35cdd627 (patch)
tree45522267a06d4724de8f5e7b34eeb91b9fd5ad2f /src
parentfcfac7b7d4a3a4cad4daeb794c52b535de09207f (diff)
d(>_< ) small bugfix
see previous commit...?
Diffstat (limited to 'src')
-rw-r--r--src/windowmanager.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/windowmanager.nim b/src/windowmanager.nim
index 6053aa0..7f5c111 100644
--- a/src/windowmanager.nim
+++ b/src/windowmanager.nim
@@ -234,6 +234,7 @@ proc onReparentNotify (wm: WindowManager, e: PXReparentEvent) = return
proc onMapNotify (wm: WindowManager, e: PXMapEvent) = return
proc onUnmapNotify (wm: WindowManager, e: PXUnmapEvent) =
if wm.focused == wm.clients.high: wm.focused -= 1
+ discard wm.display.XSetInputFocus(wm.clients[wm.focused], RevertToParent, CurrentTime)
let index = wm.clients.find(e.window)
if index > -1: wm.clients.delete index
wm.tileWindows()