only cycle focus to normal windows

This commit is contained in:
Dana Jansens 2003-04-08 04:48:39 +00:00
parent bd5d441696
commit 40bfb2b6e5

View file

@ -248,7 +248,8 @@ Client *focus_cycle(gboolean forward, gboolean linear, gboolean done,
if (it == NULL) it = g_list_last(list);
}
ft = client_focus_target(it->data);
if (ft == it->data && focus_client != ft && client_focusable(ft)) {
if (ft == it->data && focus_client != ft && client_normal(ft) &&
client_focusable(ft)) {
if (client_focus(ft)) {
noreorder++; /* avoid reordering the focus_order */
return ft;