From: Dana Jansens Date: Fri, 2 Aug 2002 14:57:30 +0000 (+0000) Subject: dont switch workspaces when focusing a sticky window X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ef0bacbaaf2b08c35d97cc58ad7d4c20c2729d98;p=chaz%2Fopenbox dont switch workspaces when focusing a sticky window --- 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())->