summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-04 07:19:21 +0000
committerDana Jansens <danakj@orodu.net>2007-05-04 07:19:21 +0000
commita823e4786e8c0b5ec1940f7a6daaf4572f7d452a (patch)
tree3f4e417a8c4a2cca001e448e2067495ee0eff99b /openbox
parente84fb1b052584b83947715d8ae4ec5d8afd201e7 (diff)
dont move windows away from omnpresentness when deiconifying them
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 256190b9..3e43891e 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -2611,7 +2611,8 @@ static void client_iconify_recursive(ObClient *self,
} else {
self->iconic = iconic;
- if (curdesk)
+ if (curdesk && self->desktop != screen_desktop &&
+ self->desktop != DESKTOP_ALL)
client_set_desktop(self, screen_desktop, FALSE);
/* this puts it after the current focused window */
@@ -3182,7 +3183,8 @@ void client_activate(ObClient *self, gboolean here, gboolean user)
if (self->iconic)
client_iconify(self, FALSE, here);
if (self->desktop != DESKTOP_ALL &&
- self->desktop != screen_desktop) {
+ self->desktop != screen_desktop)
+ {
if (here)
client_set_desktop(self, screen_desktop, FALSE);
else