fix some bug (typo ?) with event handling in multihead
This commit is contained in:
parent
a010212f97
commit
afc90f2224
6
event.c
6
event.c
|
@ -183,20 +183,20 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
|
|||
|
||||
if((c = getclient(ev->window)))
|
||||
{
|
||||
focus(c->display, c->screen, &dc[c->screen], c, ev->same_screen, &awesomeconf[screen]);
|
||||
focus(c->display, c->screen, &dc[c->screen], c, ev->same_screen, &awesomeconf[c->screen]);
|
||||
if(CLEANMASK(ev->state, c->screen) != awesomeconf[c->screen].modkey)
|
||||
return;
|
||||
if(ev->button == Button1 && (IS_ARRANGE(floating) || c->isfloating))
|
||||
{
|
||||
restack(e->xany.display, c->screen, &dc[c->screen], &awesomeconf[c->screen]);
|
||||
movemouse(c, awesomeconf);
|
||||
movemouse(c, &awesomeconf[c->screen]);
|
||||
}
|
||||
else if(ev->button == Button2)
|
||||
uicb_zoom(e->xany.display, c->screen, &dc[c->screen], &awesomeconf[c->screen], NULL);
|
||||
else if(ev->button == Button3 && (IS_ARRANGE(floating) || c->isfloating) && !c->isfixed)
|
||||
{
|
||||
restack(e->xany.display, c->screen, &dc[c->screen], &awesomeconf[c->screen]);
|
||||
resizemouse(c, awesomeconf);
|
||||
resizemouse(c, &awesomeconf[c->screen]);
|
||||
}
|
||||
}
|
||||
else if(!sel)
|
||||
|
|
Loading…
Reference in New Issue