diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2004-08-22 00:01:45 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2004-08-22 00:01:45 +0000 |
| commit | 6ec5ccdf634adbed436b4fd88edcb19275e931f6 (patch) | |
| tree | a6c7f06f117a1bd148f1163cce4024acf589ed1d | |
| parent | aa88bc9918a812454c71c55acab0a6cea395c3d1 (diff) | |
fix the unfocus action when focuslast is set, patch by faugn
| -rw-r--r-- | openbox/focus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index b81e5632..2c8e58f4 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -320,7 +320,7 @@ ObClient* focus_fallback_target(ObFocusFallbackType type) void focus_fallback(ObFocusFallbackType type) { - ObClient *new; + ObClient *new = focus_fallback_target(type); /* unfocus any focused clients.. they can be focused by Pointer events and such, and then when I try focus them, I won't get a FocusIn event @@ -328,7 +328,7 @@ void focus_fallback(ObFocusFallbackType type) */ focus_set_client(NULL); - if ((new = focus_fallback_target(type))) + if (new) client_focus(new); } |
