xutil: remove XUTIL_ANY_MODIFIER

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-19 10:59:40 +02:00
parent 6049eaec3f
commit da9f6bbceb
4 changed files with 3 additions and 6 deletions

View File

@ -692,7 +692,7 @@ client_unmanage(client_t *c)
(uint32_t *) &c->oldborder);
xcb_ungrab_button(globalconf.connection, XCB_BUTTON_INDEX_ANY, c->win,
XUTIL_ANY_MODIFIER);
XCB_BUTTON_MASK_ANY);
window_state_set(c->win, XCB_WM_WITHDRAWN_STATE);
xcb_aux_sync(globalconf.connection);

View File

@ -50,9 +50,6 @@
/* Special Key Code, passed to GrabKey */
#define XUTIL_ANY_KEY 0L
/* Used in Grabbutton_t, GrabKey */
#define XUTIL_ANY_MODIFIER (1<<15)
/* X error codes */
/* Everything's okay */

View File

@ -350,7 +350,7 @@ event_handle_enternotify(void *data __attribute__ ((unused)),
else if((emwin = xembed_getbywin(globalconf.embedded, ev->event)))
xcb_ungrab_button(globalconf.connection, XCB_BUTTON_INDEX_ANY,
xutil_screen_get(connection, emwin->phys_screen)->root,
XUTIL_ANY_MODIFIER);
XCB_BUTTON_MASK_ANY);
else
window_root_buttons_grab(ev->root);

View File

@ -125,7 +125,7 @@ window_buttons_grab(xcb_window_t win, xcb_window_t root, button_t *buttons)
b->button, b->mod | globalconf.numlockmask | XCB_MOD_MASK_LOCK);
}
xcb_ungrab_button(globalconf.connection, XCB_BUTTON_INDEX_ANY, root, XUTIL_ANY_MODIFIER);
xcb_ungrab_button(globalconf.connection, XCB_BUTTON_INDEX_ANY, root, XCB_BUTTON_MASK_ANY);
}
/** Grab all buttons on the root window.