]> Dogcows Code - chaz/openbox/commitdiff
dont autoraise when the window isn't going to get focused either. sdl-fullscreen...
authorDana Jansens <danakj@orodu.net>
Fri, 23 Aug 2002 07:28:04 +0000 (07:28 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 23 Aug 2002 07:28:04 +0000 (07:28 +0000)
src/Window.cc

index 1b86b285241795e16793f6649f598956abdeea27..ea6b68cb0487f8fa76f9bef4634f3dc09992753f 100644 (file)
@@ -3688,14 +3688,16 @@ void BlackboxWindow::enterNotifyEvent(const XCrossingEvent* ce) {
     }
   }
 
-  if ((! leave || inferior) && ! isFocused()) {
-    bool success = setInputFocus();
-    if (success)    // if focus succeeded install the colormap
-      installColormap(True); // XXX: shouldnt we honour no install?
-  }
+  if (! leave || inferior) {
+    if (! isFocused()) {
+      bool success = setInputFocus();
+      if (success)    // if focus succeeded install the colormap
+        installColormap(True); // XXX: shouldnt we honour no install?
+    }
 
-  if (screen->doAutoRaise())
-    timer->start();
+    if (screen->doAutoRaise())
+      timer->start();
+  }
 }
 
 
This page took 0.025782 seconds and 4 git commands to generate.