distribute focus when entering/leaving show-the-desktop mode

This commit is contained in:
Dana Jansens 2003-04-17 17:32:09 +00:00
parent 0a3d3245a6
commit 322b2d0a05

View file

@ -424,6 +424,16 @@ void screen_show_desktop(gboolean show)
}
}
if (show) {
/* focus desktop */
for (it = focus_order[screen_desktop]; it; it = it->next)
if (((Client*)it->data)->type == Type_Desktop &&
client_focus(it->data))
break;
} else {
focus_fallback(Fallback_NoFocus);
}
show = !!show; /* make it boolean */
PROP_SET32(ob_root, net_showing_desktop, cardinal, show);