X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.c;h=c744e3ab9828931e3f55034fdc217e3f27f9e362;hb=0f544808b8372a6c8a2cbfae214f2803dd3c6170;hp=a9841b0e142f2c814035a579fc248b699a030dc2;hpb=78282959f970d28131e6aa8d66adce359aa145dc;p=chaz%2Fopenbox diff --git a/openbox/event.c b/openbox/event.c index a9841b0e..c744e3ab 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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); } } }