fix some bug (typo ?) with event handling in multihead

This commit is contained in:
Julien Danjou 2007-09-16 12:28:38 +02:00
parent a010212f97
commit afc90f2224
1 changed files with 3 additions and 3 deletions

View File

@ -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)