From ca8a194c568012ea2a2fb1f60143fe71339027bf Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 5 Sep 2009 17:32:26 +0200 Subject: [PATCH] Bugfix: Correctly grab the right mouse button for resizing windows (Thanks xeen) --- src/manage.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/manage.c b/src/manage.c index 8c05b607..8005fc57 100644 --- a/src/manage.c +++ b/src/manage.c @@ -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 /* don’t filter for any modifiers */); /* Get _NET_WM_WINDOW_TYPE (to see if it’s a dock) */ xcb_atom_t *atom; -- 2.39.5