From: Dana Jansens Date: Sun, 13 May 2007 02:39:19 +0000 (+0000) Subject: dont make mouse bindings focus windows that dont take focus from clicks X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=59183ac23415d72b4c78f3516f69626cac8fda31;p=chaz%2Fopenbox dont make mouse bindings focus windows that dont take focus from clicks --- 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 */