]> Dogcows Code - chaz/openbox/blobdiff - openbox/screen.c
add the DesktopLast action, props to marius nita for this one
[chaz/openbox] / openbox / screen.c
index 6f711ce8c5b03cbeb536f87221bb8a10cb70604e..3809e05aacac25e128b33020674dc4096051684a 100644 (file)
@@ -36,6 +36,7 @@
 guint    screen_num_desktops;
 guint    screen_num_monitors;
 guint    screen_desktop;
+guint    screen_last_desktop;
 Size     screen_physical_size;
 gboolean screen_showing_desktop;
 DesktopLayout screen_desktop_layout;
@@ -420,6 +421,8 @@ void screen_set_desktop(guint num)
 
     if (old == num) return;
 
+    screen_last_desktop = old;
+
     ob_debug("Moving to desktop %d\n", num+1);
 
     /* show windows before hiding the rest to lessen the enter/leave events */
This page took 0.020526 seconds and 4 git commands to generate.