diff --git a/event.c b/event.c index fb2a11ff2..17d335994 100644 --- a/event.c +++ b/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)