From: Dana Jansens Date: Fri, 25 May 2007 23:42:44 +0000 (+0000) Subject: only preserve focus for normal omnipresent windows X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=de76611e8aecaabb28925ccc949724ade431d02e;p=chaz%2Fopenbox only preserve focus for normal omnipresent windows --- diff --git a/openbox/screen.c b/openbox/screen.c index b7cb41c8..f424ca04 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -533,7 +533,8 @@ void screen_set_desktop(guint num, gboolean dofocus) } } - if (focus_client && (focus_client->desktop == DESKTOP_ALL || + if (focus_client && ((client_normal(focus_client) && + focus_client->desktop == DESKTOP_ALL) || focus_client->desktop == screen_desktop)) dofocus = FALSE;