]> Dogcows Code - chaz/openbox/blobdiff - openbox/screen.c
don't activate and change desktops if the client's not on the current desktop and...
[chaz/openbox] / openbox / screen.c
index 71748d65277701dc383711c89733aeb683b66f42..97cab3e6492a7b6b8ffebb0b7a2ed143f8e753dc 100644 (file)
@@ -58,6 +58,7 @@ gboolean screen_showing_desktop;
 DesktopLayout screen_desktop_layout;
 gchar  **screen_desktop_names;
 Window   screen_support_win;
+Time     screen_desktop_user_time = CurrentTime;
 
 static Rect  **area; /* array of desktop holding array of xinerama areas */
 static Rect  *monitor_area;
@@ -475,6 +476,9 @@ void screen_set_desktop(guint num)
     }
 
     event_ignore_queued_enters();
+
+    if (event_curtime != CurrentTime)
+        screen_desktop_user_time = event_curtime;
 }
 
 static void get_row_col(guint d, guint *r, guint *c)
This page took 0.020583 seconds and 4 git commands to generate.