void clientGrabMouseButton (Client * c) { ScreenInfo *screen_info; g_return_if_fail (c != NULL); TRACE ("entering clientGrabMouseButton"); TRACE ("grabbing buttons for client \"%s\" (0x%lx)", c->name, c->window); screen_info = c->screen_info; if (screen_info->params->raise_with_any_button) { grabButton(clientGetXDisplay (c), AnyButton, AnyModifier, c->window); } else { grabButton(clientGetXDisplay (c), Button1, AnyModifier, c->window); } }
void clientUngrabMouseButton (Client * c) { g_return_if_fail (c != NULL); TRACE ("client \"%s\" (0x%lx)", c->name, c->window); ungrabButton (c->screen_info->display_info->devices, clientGetXDisplay (c), AnyButton, AnyModifier, c->window); /* We've ungrabbed way too much, so regrab the regular buttons/modifiers */ clientGrabButtons (c); }
void clientUngrabMouseButton (Client * c) { g_return_if_fail (c != NULL); TRACE ("entering clientUngrabMouseButton"); TRACE ("ungrabing buttons for client \"%s\" (0x%lx)", c->name, c->window); ungrabButton(clientGetXDisplay (c), AnyButton, AnyModifier, c->window); /* We've ungrabbed way too much, so regrab the regular buttons/modifiers */ clientGrabButtons (c); }