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)
|
if(!raised)
|
||||||
{
|
{
|
||||||
XGrabButton(c->display, Button1, NoSymbol, c->win, False,
|
XGrabButton(c->display, Button1, NoSymbol, c->win, False,
|
||||||
ButtonPressMask, GrabModeAsync, GrabModeSync, None, None);
|
BUTTONMASK, GrabModeSync, GrabModeAsync, 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
XGrabButton(c->display, Button1, modkey, c->win, False, BUTTONMASK,
|
XGrabButton(c->display, Button1, modkey, c->win, False, BUTTONMASK,
|
||||||
|
|
1
event.c
1
event.c
|
@ -197,6 +197,7 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
|
||||||
|
|
||||||
if((c = get_client_bywin(awesomeconf->clients, ev->window)))
|
if((c = get_client_bywin(awesomeconf->clients, ev->window)))
|
||||||
{
|
{
|
||||||
|
XAllowEvents(c->display, ReplayPointer, CurrentTime);
|
||||||
focus(c, ev->same_screen, &awesomeconf[c->screen]);
|
focus(c, ev->same_screen, &awesomeconf[c->screen]);
|
||||||
if(CLEANMASK(ev->state, c->screen) != awesomeconf[c->screen].modkey)
|
if(CLEANMASK(ev->state, c->screen) != awesomeconf[c->screen].modkey)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue