summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-10 20:05:06 +0000
committerDana Jansens <danakj@orodu.net>2003-09-10 20:05:06 +0000
commit9caa096ad95772741514b1a5cccf288f249e9b1e (patch)
tree447999fbfb22f445b3c0353b18e7cd98304bbca9 /openbox/event.c
parent13dbd8cb17d9ad5f21742306a8d06113f5b1bbbc (diff)
frame context fallbacks when there is no binding on the context
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c4
1 files changed, 3 insertions, 1 deletions
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);