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:
0a3d324
)
distribute focus when entering/leaving show-the-desktop mode
author
Dana Jansens
<danakj@orodu.net>
Thu, 17 Apr 2003 17:32:09 +0000
(17:32 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 17 Apr 2003 17:32:09 +0000
(17:32 +0000)
openbox/screen.c
patch
|
blob
|
history
diff --git
a/openbox/screen.c
b/openbox/screen.c
index 118798e8e8b02f00a8a3b61c30b37a0b6e84948a..72363cdc74ee61f0bc9e41aebc51e80b005c0f36 100644
(file)
--- a/
openbox/screen.c
+++ b/
openbox/screen.c
@@
-424,6
+424,16
@@
void screen_show_desktop(gboolean show)
}
}
+ 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);