X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus.c;h=b81e5632c4dbd68148177e3cfb98ebaa323265c6;hb=de1559a09497ae4ead44a6e70b556123a5bab35c;hp=2c8e58f446919c2dc8c0f672972c124ed16bbb3a;hpb=6ec5ccdf634adbed436b4fd88edcb19275e931f6;p=chaz%2Fopenbox diff --git a/openbox/focus.c b/openbox/focus.c index 2c8e58f4..b81e5632 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 = focus_fallback_target(type); + ObClient *new; /* 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) + if ((new = focus_fallback_target(type))) client_focus(new); }