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.
This commit is contained in:
retoor 2026-01-08 23:34:10 +01:00
parent ab47f3c117
commit 11a4042aa2

View File

@ -244,6 +244,10 @@ static void handle_unmap_notify(XUnmapEvent *ev)
return; return;
} }
if (c->flags & (CLIENT_MAXIMIZED | CLIENT_FULLSCREEN)) {
return;
}
client_unmanage(c); client_unmanage(c);
} }