]> Dogcows Code - chaz/openbox/commitdiff
act on the visibly focused window when that differs from the actual focused window
authorDana Jansens <danakj@orodu.net>
Mon, 8 Sep 2003 18:19:04 +0000 (18:19 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 8 Sep 2003 18:19:04 +0000 (18:19 +0000)
openbox/event.c

index a9841b0e142f2c814035a579fc248b699a030dc2..c744e3ab9828931e3f55034fdc217e3f27f9e362 100644 (file)
@@ -499,7 +499,11 @@ static void event_process(const XEvent *ec, gpointer data)
                     e->type == MotionNotify)
                     mouse_event(client, context, e);
                 else if (e->type == KeyPress)
-                    keyboard_event(client, e);
+                    /* when in the middle of a focus cycling action, this
+                       causes the window which appears to be focused to be
+                       the one on which the actions will be executed */
+                    keyboard_event((focus_cycle_target ?
+                                    focus_cycle_target : client), e);
             }
         }
     }
This page took 0.028829 seconds and 4 git commands to generate.