Bugfix: Correctly grab the right mouse button for resizing windows (Thanks xeen)

This commit is contained in:
Michael Stapelberg 2009-09-05 17:32:26 +02:00
parent a8352a8988
commit ca8a194c56
1 changed files with 2 additions and 6 deletions

View File

@ -231,12 +231,8 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
xcb_grab_button(conn, false, child, XCB_EVENT_MASK_BUTTON_PRESS,
XCB_GRAB_MODE_SYNC, XCB_GRAB_MODE_ASYNC, root, XCB_NONE,
1 /* left mouse button */, XCB_MOD_MASK_1);
xcb_grab_button(conn, false, child, XCB_EVENT_MASK_BUTTON_PRESS,
XCB_GRAB_MODE_SYNC, XCB_GRAB_MODE_ASYNC, root, XCB_NONE,
3 /* right mouse button */, XCB_MOD_MASK_1);
3 /* right mouse button */,
XCB_BUTTON_MASK_ANY /* dont filter for any modifiers */);
/* Get _NET_WM_WINDOW_TYPE (to see if its a dock) */
xcb_atom_t *atom;