]> Dogcows Code - chaz/openbox/commitdiff
ignore the EnterNotify for focusing when changing workspaces in an ACTIVE_WINDOW...
authorDana Jansens <danakj@orodu.net>
Fri, 16 Aug 2002 04:25:13 +0000 (04:25 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 16 Aug 2002 04:25:13 +0000 (04:25 +0000)
src/blackbox.cc

index ed12c55948679bc4908e6441eb983d9cb5156580..efb782a559ecea0f970336a7bd58b743a4ba590e 100644 (file)
@@ -574,6 +574,8 @@ void Blackbox::process_event(XEvent *e) {
         has moved to a known window.
       */
       e->xfocus.window = None;
+
+      no_focus = False;   // focusing is back on
     }
 
     break;
@@ -682,8 +684,10 @@ void Blackbox::process_event(XEvent *e) {
           if (win->isIconic())
             win->deiconify(False, False);
           if (! win->isStuck() &&
-              (win->getWorkspaceNumber() != screen->getCurrentWorkspaceID()))
+              (win->getWorkspaceNumber() != screen->getCurrentWorkspaceID())) {
+            no_focus = True;
             screen->changeWorkspaceID(win->getWorkspaceNumber());
+          }
           if (win->isVisible() && win->setInputFocus()) {
             win->getScreen()->getWorkspace(win->getWorkspaceNumber())->
               raiseWindow(win);
This page took 0.023484 seconds and 4 git commands to generate.