From 16fcb1213d4ccfccd4e4a8ad5e8b0c826dc5c16e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 28 May 2007 00:33:58 +0000 Subject: when you focus a window, bring any modal children it has to that desktop when falling back, return the window which actually was focused by client_focus let you focus cycle to windows when their modal window is on another desktop (it will be brought over) --- openbox/focus.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbox/focus.c') diff --git a/openbox/focus.c b/openbox/focus.c index 59dd0d0d..87f589f2 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -166,6 +166,8 @@ ObClient* focus_fallback(gboolean allow_refocus, gboolean allow_pointer) focus_nothing(); new = focus_fallback_target(allow_refocus, allow_pointer, old); + /* get what was really focused */ + if (new) new = client_focus_target(new); return new; } -- cgit v1.2.3