]> Dogcows Code - chaz/openbox/blobdiff - openbox/screen.c
you can create dialog windows called "prompts" which have a message and some buttons...
[chaz/openbox] / openbox / screen.c
index da490778357a81d5e54ab73d383d31f7bf9fd628..5201f78a1d27a9da1c3c2faeb77f82290f896a49 100644 (file)
@@ -620,10 +620,15 @@ void screen_set_desktop(guint num, gboolean dofocus)
         /* If screen_desktop_timeout is true, then we've been on this desktop
            long enough and we can save it as the last desktop. */
 
-        /* save the "last desktop" as the "old desktop" */
-        screen_old_desktop = screen_last_desktop;
-        /* save the desktop we're coming from as the "last desktop" */
-        screen_last_desktop = previous;
+        if (screen_last_desktop == previous)
+            /* this is the startup state only */
+            screen_old_desktop = screen_desktop;
+        else {
+            /* save the "last desktop" as the "old desktop" */
+            screen_old_desktop = screen_last_desktop;
+            /* save the desktop we're coming from as the "last desktop" */
+            screen_last_desktop = previous;
+        }
     }
     else {
         /* If screen_desktop_timeout is false, then we just got to this desktop
This page took 0.022426 seconds and 4 git commands to generate.