all repos — openbox @ 8e34bfcfcbd7bfc9913f40a23016f30c63803611

openbox fork - make it a bit more like ryudo

keep iconified windows' workspace set to BSENTINEL, but set the NETWM hint to 0xffffffff (all desktops)
Dana Jansens danakj@orodu.net
commit

8e34bfcfcbd7bfc9913f40a23016f30c63803611

parent

f2ecfb623b54dacec13d23260a3c6512632c0eef

2 files changed, 9 insertions(+), 4 deletions(-)

jump to
M src/Screen.ccsrc/Screen.cc

@@ -921,10 +921,7 @@

void BScreen::addIcon(BlackboxWindow *w) { if (! w) return; - // we set the workspace to 'all workspaces' so that taskbars will show the - // window. otherwise, it made uniconifying a window impoosible without the - // blackbox workspace menu - w->setWorkspace(0xffffffff); + w->setWorkspace(BSENTINEL); w->setWindowNumber(iconList.size()); iconList.push_back(w);
M src/Window.ccsrc/Window.cc

@@ -1867,6 +1867,14 @@

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); }