From 8e34bfcfcbd7bfc9913f40a23016f30c63803611 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 9 Jul 2002 04:49:04 +0000 Subject: keep iconified windows' workspace set to BSENTINEL, but set the NETWM hint to 0xffffffff (all desktops) --- src/Window.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Window.cc') 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); } -- cgit v1.2.3