From: Dana Jansens Date: Thu, 15 Mar 2007 01:02:48 +0000 (+0000) Subject: when an omnipresent window has focus and you switch desktops, keep it focused X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=091e296a3dd1020cdd4af2acbd35735778f05788;p=chaz%2Fopenbox when an omnipresent window has focus and you switch desktops, keep it focused --- 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) {