fix click-to-raise feature
This commit is contained in:
parent
cb0080039e
commit
9360efb89e
8
client.c
8
client.c
|
@ -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,
|
||||
|
|
3
event.c
3
event.c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue