X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus.c;h=5a4f9f07e3f364dbe133e56061e93f1bea8b7b29;hb=091e296a3dd1020cdd4af2acbd35735778f05788;hp=07ac963c3a4fc5ee41488e3e68e0b17fd8cd8478;hpb=83d987d9abb9e15b7c6f41fdb29e4f6a0bf200f9;p=chaz%2Fopenbox diff --git a/openbox/focus.c b/openbox/focus.c index 07ac963c..5a4f9f07 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -233,6 +233,11 @@ ObClient* focus_fallback_target(gboolean allow_refocus, ObClient *old) } #endif + ob_debug("trying omnipresentness\n"); + if (old && old->desktop == DESKTOP_ALL) + return old; + + ob_debug("trying the focus order\n"); for (it = focus_order; it; it = g_list_next(it)) if (allow_refocus || it->data != old) {