summaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-27 18:17:45 +0000
committerDana Jansens <danakj@orodu.net>2002-07-27 18:17:45 +0000
commit5ec63388b8fbbdffc0999ba727ad718f87d683fc (patch)
treeb63d1899ade9ca828edf76038837f643c15cb2c6 /src/Screen.cc
parent3816b6a25701983efc92dcadb04937006e4506cf (diff)
fixes to make sticky windows work better. they appear in all workspace lists, they get focus when switching workspaces properly, their workspace menus show their focus properly.
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 13916bae..b6c05619 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1516,6 +1516,8 @@ void BScreen::reassociateWindow(BlackboxWindow *w, unsigned int wkspc_id,
removeIcon(w);
getWorkspace(wkspc_id)->addWindow(w);
} else if (ignore_sticky || ! w->isStuck()) {
+ if (w->isStuck())
+ w->stick();
getWorkspace(w->getWorkspaceNumber())->removeWindow(w);
getWorkspace(wkspc_id)->addWindow(w);
}