fix click-to-raise feature

This commit is contained in:
Nikos Ntarmos 2007-10-16 02:24:04 +03:00 committed by Julien Danjou
parent cb0080039e
commit 9360efb89e
2 changed files with 3 additions and 8 deletions

View File

@ -50,13 +50,7 @@ grabbuttons(Client * c, Bool focused, Bool raised, KeySym modkey, unsigned int n
if(!raised)
{
XGrabButton(c->display, Button1, NoSymbol, c->win, False,
ButtonPressMask, GrabModeAsync, GrabModeSync, None, None);
XGrabButton(c->display, Button1, LockMask, c->win, False,
ButtonPressMask, GrabModeAsync, GrabModeSync, None, None);
XGrabButton(c->display, Button1, numlockmask, c->win, False,
ButtonPressMask, GrabModeAsync, GrabModeSync, None, None);
XGrabButton(c->display, Button1, numlockmask | LockMask, c->win, False,
ButtonPressMask, GrabModeAsync, GrabModeSync, None, None);
BUTTONMASK, GrabModeSync, GrabModeAsync, None, None);
}
XGrabButton(c->display, Button1, modkey, c->win, False, BUTTONMASK,

View File

@ -197,6 +197,7 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
if((c = get_client_bywin(awesomeconf->clients, ev->window)))
{
XAllowEvents(c->display, ReplayPointer, CurrentTime);
focus(c, ev->same_screen, &awesomeconf[c->screen]);
if(CLEANMASK(ev->state, c->screen) != awesomeconf[c->screen].modkey)
{
@ -233,7 +234,7 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
uicb_settrans(&awesomeconf[c->screen], "+5");
else if(ev->button == Button5)
uicb_settrans(&awesomeconf[c->screen], "-5");
}
}
else if(!*awesomeconf->client_sel)
for(screen = 0; screen < ScreenCount(e->xany.display); screen++)
if(RootWindow(e->xany.display, screen) == ev->window