]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
Fix the Focus/Activate actions to focus windows on other desktops correctly
[chaz/openbox] / openbox / client.c
index c4576952219c286beed6eb8c938afd814679d078..b3f95364b9cad5fdf4536ab1e20d92a864dcb0aa 100644 (file)
@@ -3931,7 +3931,8 @@ static void client_present(ObClient *self, gboolean here, gboolean raise,
 }
 
 /* this function exists to map to the net_active_window message in the ewmh */
-void client_activate(ObClient *self, gboolean desktop, gboolean raise,
+void client_activate(ObClient *self, gboolean desktop,
+                     gboolean here, gboolean raise,
                      gboolean unshade, gboolean user)
 {
     if ((user && (desktop ||
@@ -3939,7 +3940,7 @@ void client_activate(ObClient *self, gboolean desktop, gboolean raise,
                   self->desktop == screen_desktop)) ||
         client_can_steal_focus(self, event_curtime, CurrentTime))
     {
-        client_present(self, FALSE, raise, unshade);
+        client_present(self, here, raise, unshade);
     }
     else
         client_hilite(self, TRUE);
This page took 0.020593 seconds and 4 git commands to generate.