]> Dogcows Code - chaz/openbox/commitdiff
dont switch workspaces when focusing a sticky window
authorDana Jansens <danakj@orodu.net>
Fri, 2 Aug 2002 14:57:30 +0000 (14:57 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 2 Aug 2002 14:57:30 +0000 (14:57 +0000)
src/blackbox.cc

index a818f12818d323a2f3c3b5651ec761b90fa15858..0e03e17817ebc9289f31b5d89bb8a95a92ad10da 100644 (file)
@@ -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())->
This page took 0.022539 seconds and 4 git commands to generate.