projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d47526
)
smarter focus restoring
author
Dana Jansens
<danakj@orodu.net>
Mon, 10 Feb 2003 17:01:32 +0000
(17:01 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 10 Feb 2003 17:01:32 +0000
(17:01 +0000)
src/screen.cc
patch
|
blob
|
history
diff --git
a/src/screen.cc
b/src/screen.cc
index 75d8e87ea06daf323a4bcc01f876a5fe484ea7a1..d242e8876173a7444297301a58a0fa8faab03488 100644
(file)
--- a/
src/screen.cc
+++ b/
src/screen.cc
@@
-890,8
+890,11
@@
void Screen::showDesktop(bool 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;