]> Dogcows Code - chaz/openbox/blobdiff - openbox/event.c
frame context fallbacks when there is no binding on the context
[chaz/openbox] / openbox / event.c
index f5b2ec4823127d464e843aaa883789537eefbafd..22a074fd462cfe420cc6864b114a5868f3134f3b 100644 (file)
@@ -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);
This page took 0.025577 seconds and 4 git commands to generate.