summaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-09 04:49:04 +0000
committerDana Jansens <danakj@orodu.net>2002-07-09 04:49:04 +0000
commit8e34bfcfcbd7bfc9913f40a23016f30c63803611 (patch)
treef9253696d8bf0a0f7c1a6f0deb07b15aad3899f8 /src/Window.cc
parentf2ecfb623b54dacec13d23260a3c6512632c0eef (diff)
keep iconified windows' workspace set to BSENTINEL, but set the NETWM hint to 0xffffffff (all desktops)
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 808315dc..99c68fa7 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1867,6 +1867,14 @@ void BlackboxWindow::remaximize(void) {
void BlackboxWindow::setWorkspace(unsigned int n) {
blackbox_attrib.flags |= AttribWorkspace;
blackbox_attrib.workspace = n;
+ if (n == BSENTINEL) { // iconified window
+ /*
+ we set the workspace to 'all workspaces' so that taskbars will show the
+ window. otherwise, it made uniconifying a window imposible without the
+ blackbox workspace menu
+ */
+ n = 0xffffffff;
+ }
xatom->setValue(client.window, XAtom::net_wm_desktop, XAtom::cardinal, n);
}