all repos — openbox @ 322b2d0a05daf0c0c9de07baf5e27e4945f7bfd5

openbox fork - make it a bit more like ryudo

distribute focus when entering/leaving show-the-desktop mode
Dana Jansens danakj@orodu.net
commit

322b2d0a05daf0c0c9de07baf5e27e4945f7bfd5

parent

0a3d3245a6a72c4af72b57b71d97190fb814adb3

1 files changed, 10 insertions(+), 0 deletions(-)

jump to
M openbox/screen.copenbox/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);