distribute focus when entering/leaving show-the-desktop mode
Dana Jansens danakj@orodu.net
1 files changed,
10 insertions(+),
0 deletions(-)
jump to
M
openbox/screen.c
→
openbox/screen.c
@@ -424,6 +424,16 @@ frame_show(client->frame);
} } + 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);