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);
}
/*
* Runs the given binding and handles parse errors. If con is passed, it will
* execute the command binding with that container selected by criteria.
- * Returns a CommandResult for running the binding's command. Caller should
- * render tree if needs_tree_render is true. Free with command_result_free().
+ * Returns a CommandResult for running the binding's command. Free with
+ * command_result_free().
*
*/
CommandResult *run_binding(Binding *bind, Con *con) {