only preserve focus for normal omnipresent windows

This commit is contained in:
Dana Jansens 2007-05-25 23:42:44 +00:00
parent 40f20e93ca
commit de76611e8a

View file

@ -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;