when an omnipresent window has focus and you switch desktops, keep it focused

This commit is contained in:
Dana Jansens 2007-03-15 01:02:48 +00:00
parent 83d987d9ab
commit 091e296a3d

View file

@ -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) {