Implement resizing floating clients with Mod1 + right mouse button

This commit is contained in:
Michael Stapelberg
2009-08-22 07:49:28 +02:00
parent 32532792cd
commit c7ba95e79d
4 changed files with 50 additions and 2 deletions

View File

@ -233,6 +233,11 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
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);
/* Get _NET_WM_WINDOW_TYPE (to see if its a dock) */
xcb_atom_t *atom;
xcb_get_property_reply_t *preply = xcb_get_property_reply(conn, wm_type_cookie, NULL);