]> Dogcows Code - chaz/openbox/commitdiff
if a launch time isnt there (like for client_activate) assume the window launched...
authorDana Jansens <danakj@orodu.net>
Tue, 30 Mar 2010 00:36:35 +0000 (20:36 -0400)
committerDana Jansens <danakj@orodu.net>
Tue, 30 Mar 2010 00:37:20 +0000 (20:37 -0400)
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.029084 seconds and 4 git commands to generate.