all repos — openbox @ ba9b0617ed0c68b0487fd5246fbcdc2156f65c08

openbox fork - make it a bit more like ryudo

smarter focus restoring
Dana Jansens danakj@orodu.net
commit

ba9b0617ed0c68b0487fd5246fbcdc2156f65c08

parent

5d47526b30ec8d9c98c047929431faf89e9fe3f2

1 files changed, 5 insertions(+), 2 deletions(-)

jump to
M src/screen.ccsrc/screen.cc

@@ -890,8 +890,11 @@ if (show) {

Client *c = openbox->focusedClient(); if (c) saved_focus = c->window(); } else { - Client *c = openbox->findClient(saved_focus); - if (c) c->focus(); + Client *f = openbox->focusedClient(); + if (!f || f->type() == Client::Type_Desktop) { + Client *c = openbox->findClient(saved_focus); + if (c) c->focus(); + } } _showing_desktop = show;