Don't grab the buttons on the root window.

We don't actually need to grab the buttons to fix #2097, but doing so
will cause a freeze due to unreleased events.

We partially revert 6f12f02 which avoids the freeze, but doesn't break
functionality.

relates to #2097
fixes #2168
This commit is contained in:
Ingo Bürk 2016-01-20 22:28:20 +01:00
parent cfd07ab0e6
commit 95b60b170e
1 changed files with 0 additions and 4 deletions

View File

@ -164,10 +164,6 @@ void regrab_all_buttons(xcb_connection_t *conn) {
xcb_grab_buttons(conn, con->window->id, grab_scrollwheel); xcb_grab_buttons(conn, con->window->id, grab_scrollwheel);
} }
/* Also grab the root window to allow bindings to work on there as well. */
xcb_ungrab_button(conn, XCB_BUTTON_INDEX_ANY, root, XCB_BUTTON_MASK_ANY);
xcb_grab_buttons(conn, root, grab_scrollwheel);
xcb_ungrab_server(conn); xcb_ungrab_server(conn);
} }