diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-13 02:39:19 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-13 02:39:19 +0000 |
| commit | 59183ac23415d72b4c78f3516f69626cac8fda31 (patch) | |
| tree | 0595ea87bd2a35df48d3af6d6cdad6bc25651cb9 /openbox | |
| parent | 18c2737a2fb3b3c85623dae5d2265d3a97c347e8 (diff) | |
dont make mouse bindings focus windows that dont take focus from clicks
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/action.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/action.c b/openbox/action.c index 931cff39..e3409791 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1255,7 +1255,8 @@ void action_activate(union ActionData *data) { if (data->client.any.c) { if (!data->any.button || client_mouse_focusable(data->client.any.c) || - data->any.context != OB_FRAME_CONTEXT_CLIENT) + (data->any.context != OB_FRAME_CONTEXT_CLIENT && + data->any.context != OB_FRAME_CONTEXT_FRAME)) { /* if using focus_delay, stop the timer now so that focus doesn't go moving on us */ @@ -1275,7 +1276,8 @@ void action_focus(union ActionData *data) { if (data->client.any.c) { if (!data->any.button || client_mouse_focusable(data->client.any.c) || - data->any.context != OB_FRAME_CONTEXT_CLIENT) + (data->any.context != OB_FRAME_CONTEXT_CLIENT && + data->any.context != OB_FRAME_CONTEXT_FRAME)) { /* if using focus_delay, stop the timer now so that focus doesn't go moving on us */ |
