From 11a4042aa2e366334b9bddf648f64187a21d72da Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 8 Jan 2026 23:34:10 +0100 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); }