X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.c;h=22a074fd462cfe420cc6864b114a5868f3134f3b;hb=4be58bf13719fd22cb08a7f016eaf757640ccd05;hp=f5b2ec4823127d464e843aaa883789537eefbafd;hpb=0453a1dbedddadddf31c8ca40e1326e7c34d6362;p=chaz%2Fopenbox diff --git a/openbox/event.c b/openbox/event.c index f5b2ec48..22a074fd 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -581,7 +581,9 @@ static void event_handle_client(ObClient *client, XEvent *e) /* Wheel buttons don't draw because they are an instant click, so it is a waste of resources to go drawing it. */ if (!(e->xbutton.button == 4 || e->xbutton.button == 5)) { - switch (frame_context(client, e->xbutton.window)) { + con = frame_context(client, e->xbutton.window); + con = mouse_button_frame_context(con, e->xbutton.button); + switch (con) { case OB_FRAME_CONTEXT_MAXIMIZE: client->frame->max_press = (e->type == ButtonPress); framerender_frame(client->frame);