Skip to content

Commit

Permalink
Merge pull request #3857 from gldrk/ungrab-on-unmap
Browse files Browse the repository at this point in the history
Release all grabs when unmanaging windows
  • Loading branch information
mergify[bot] authored Dec 31, 2023
2 parents cb72c0a + 16c560a commit 2682bcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions objects/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -3010,6 +3010,8 @@ client_unmanage(client_t *c, client_unmanage_t reason)

if(reason != CLIENT_UNMANAGE_DESTROYED)
{
xwindow_buttons_grab(c->window, &(button_array_t){ .len = 0 });
xwindow_grabkeys(c->window, &(key_array_t){ .len = 0 });
area_t geometry = client_get_undecorated_geometry(c);
xcb_unmap_window(globalconf.connection, c->window);
xcb_reparent_window(globalconf.connection, c->window, globalconf.screen->root,
Expand Down

0 comments on commit 2682bcb

Please sign in to comment.