From 00b5b2c3e22da2b859acdc1e431d755e624ab085 Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 8 Jan 2026 22:34:10 +0000 Subject: [PATCH] fix: prevent unmanaging maximized/fullscreen windows on UnmapNotify - Modify handle_unmap_notify in src/main.c to ignore UnmapNotify events for windows with CLIENT_MAXIMIZED or CLIENT_FULLSCREEN flags. - This prevents browsers and other applications from becoming 'lost' (unmanaged but mapped) when they temporarily unmap themselves during state transitions or resizing. --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index 6d1ad0a..21a387b 100644 --- a/src/main.c +++ b/src/main.c @@ -244,6 +244,10 @@ static void handle_unmap_notify(XUnmapEvent *ev) return; } + if (c->flags & (CLIENT_MAXIMIZED | CLIENT_FULLSCREEN)) { + return; + } + client_unmanage(c); }