smarter focus restoring
This commit is contained in:
parent
5d47526b30
commit
ba9b0617ed
1 changed files with 5 additions and 2 deletions
|
@ -890,8 +890,11 @@ void Screen::showDesktop(bool show)
|
||||||
Client *c = openbox->focusedClient();
|
Client *c = openbox->focusedClient();
|
||||||
if (c) saved_focus = c->window();
|
if (c) saved_focus = c->window();
|
||||||
} else {
|
} else {
|
||||||
Client *c = openbox->findClient(saved_focus);
|
Client *f = openbox->focusedClient();
|
||||||
if (c) c->focus();
|
if (!f || f->type() == Client::Type_Desktop) {
|
||||||
|
Client *c = openbox->findClient(saved_focus);
|
||||||
|
if (c) c->focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_showing_desktop = show;
|
_showing_desktop = show;
|
||||||
|
|
Loading…
Reference in a new issue