projects
/
manmower
/
cgl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3347e8
)
Don't move focus away from a window if it was focused and it didnt hide when switchin...
author
Dana Jansens
<danakj@orodu.net>
Thu, 17 Dec 2009 20:40:25 +0000
(15:40 -0500)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 17 Dec 2009 20:40:25 +0000
(15:40 -0500)
openbox/screen.c
patch
|
blob
|
history
diff --git
a/openbox/screen.c
b/openbox/screen.c
index 03e4efea0f0c805f9520c7e8b506a87601311f42..76ad1f274803e65f69997a01efd9a14341bc8098 100644
(file)
--- a/
openbox/screen.c
+++ b/
openbox/screen.c
@@
-717,8
+717,7
@@
void screen_set_desktop(guint num, gboolean dofocus)
for (it = g_list_last(stacking_list); it; it = g_list_previous(it)) {
if (WINDOW_IS_CLIENT(it->data)) {
ObClient *c = it->data;
- client_hide(c);
- if (c == focus_client) {
+ if (client_hide(c) && c == focus_client) {
/* c was focused and we didn't do fallback clearly so make sure
openbox doesnt still consider the window focused.
this happens when using NextWindow with allDesktops, since