summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--src/windowmanager.nim1
2 files changed, 2 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 4b91cf9..5aac1e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
*.kra*
-config.nim
+*/config.nim
kauw \ No newline at end of file
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()