diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-19 22:03:12 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-19 22:03:12 +0000 |
| commit | 198aab2b713b9a916079b0fd6cf88555d7f3c9b8 (patch) | |
| tree | af702e7f4652ba6783e748ba6f41215aa2be2571 /openbox/event.c | |
| parent | ed4d0ca31a9c1c6c815cb87a058bb1d36a0888c1 (diff) | |
make binding fallback for mouse clicks less restrictive. if you dont have a binding for the same button AND STATE then fallback.
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c index ace548a6..bf2fd932 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -772,7 +772,8 @@ static void event_handle_client(ObClient *client, XEvent *e) { /* use where the press occured */ con = frame_context(client, e->xbutton.window, px, py); - con = mouse_button_frame_context(con, e->xbutton.button); + con = mouse_button_frame_context(con, e->xbutton.button, + e->xbutton.state); if (e->type == ButtonRelease && e->xbutton.button == pb) pb = 0, px = py = -1; |
