]> Dogcows Code - chaz/openbox/commitdiff
dont use enter events from new windows appearing to focus them, unless underMouse...
authorDana Jansens <danakj@orodu.net>
Tue, 12 Jun 2007 04:20:41 +0000 (04:20 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 12 Jun 2007 04:20:41 +0000 (04:20 +0000)
openbox/client.c

index 5faeacca9ed7bd0b03181c98b6021d47c762696a..e51318947b8025dbb51903a82d93eb52acd584ed 100644 (file)
@@ -532,7 +532,16 @@ void client_manage(Window window)
     /* this has to happen before we try focus the window, but we want it to
        happen after the client's stacking has been determined or it looks bad
     */
-    client_show(self);
+    {
+        gulong ignore_start;
+        if (!config_focus_under_mouse)
+            ignore_start = event_start_ignore_all_enters();
+
+        client_show(self);
+
+        if (!config_focus_under_mouse)
+            event_end_ignore_all_enters(ignore_start);
+    }
 
     if (activate) {
         gboolean stacked = client_restore_session_stacking(self);
This page took 0.027898 seconds and 4 git commands to generate.