X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus.c;h=afedd0008f840330b8dc0365c9002e877a0a6fb0;hb=eb1cd9cc499da864b04cc39a2cf6bd8bf247248b;hp=7a686800de9ea81d5ac01f5004107d4c49b47f22;hpb=bfb800c032e1dd50f5d1c37d1ce8ac9239947b01;p=chaz%2Fopenbox diff --git a/openbox/focus.c b/openbox/focus.c index 7a686800..afedd000 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -259,10 +259,6 @@ ObClient* focus_fallback_target(gboolean allow_refocus, ObClient *old) void focus_fallback(gboolean allow_refocus) { ObClient *new; - ObClient *old; - - /* save this before moving focus away to nothing */ - old = focus_client; /* 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 @@ -270,7 +266,7 @@ void focus_fallback(gboolean allow_refocus) */ focus_nothing(); - if ((new = focus_fallback_target(allow_refocus, old))) + if ((new = focus_fallback_target(allow_refocus, focus_client))) client_focus(new); }