]> Dogcows Code - chaz/openbox/commitdiff
dont make mouse bindings focus windows that dont take focus from clicks
authorDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 02:39:19 +0000 (02:39 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 02:39:19 +0000 (02:39 +0000)
openbox/action.c

index 931cff392917417e0faba141f1668a995045b853..e340979177603e2b745c91f4c87241b87e7feb54 100644 (file)
@@ -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 */
This page took 0.025661 seconds and 4 git commands to generate.