From ef0bacbaaf2b08c35d97cc58ad7d4c20c2729d98 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 2 Aug 2002 14:57:30 +0000 Subject: [PATCH] dont switch workspaces when focusing a sticky window --- src/blackbox.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blackbox.cc b/src/blackbox.cc index a818f128..0e03e178 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -713,7 +713,8 @@ void Blackbox::process_event(XEvent *e) { if (win->isIconic()) win->deiconify(False, True); - if (win->getWorkspaceNumber() != screen->getCurrentWorkspaceID()) + if (! win->isStuck() && + (win->getWorkspaceNumber() != screen->getCurrentWorkspaceID())) screen->changeWorkspaceID(win->getWorkspaceNumber()); if (win->isVisible() && win->setInputFocus()) { win->getScreen()->getWorkspace(win->getWorkspaceNumber())->