From 59183ac23415d72b4c78f3516f69626cac8fda31 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 13 May 2007 02:39:19 +0000 Subject: [PATCH] dont make mouse bindings focus windows that dont take focus from clicks --- openbox/action.c | 6 ++++-- 1 file 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 */ -- 2.39.2