From 091e296a3dd1020cdd4af2acbd35735778f05788 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 15 Mar 2007 01:02:48 +0000 Subject: [PATCH] when an omnipresent window has focus and you switch desktops, keep it focused --- openbox/focus.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.39.2