]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
if a launch time isnt there (like for client_activate) assume the window launched...
[chaz/openbox] / openbox / client.c
index 3e10a9ab15af16297e0750cf2dc2021157eb49c9..adbbc13b9d849f5ceb0baf05f5f1b2f256d1e9c0 100644 (file)
@@ -725,8 +725,9 @@ static gboolean client_can_steal_focus(ObClient *self, Time steal_time,
     if (!(self->desktop == screen_desktop ||
           self->desktop == DESKTOP_ALL) &&
         /* the timestamp is from before you changed desktops */
-        launch_time && screen_desktop_user_time &&
-        !event_time_after(launch_time, screen_desktop_user_time))
+        (!launch_time ||
+         (screen_desktop_user_time &&
+          !event_time_after(launch_time, screen_desktop_user_time))))
     {
         steal = FALSE;
         ob_debug_type(OB_DEBUG_FOCUS,
This page took 0.02138 seconds and 4 git commands to generate.