all repos — openbox @ 10cabdfe8570963bd0ed12c4aca8ad469ba3d4ea

openbox fork - make it a bit more like ryudo

Fix a minor issue with lastdesktop right after startup.
Mikael Magnusson mikachu@comhem.se
commit

10cabdfe8570963bd0ed12c4aca8ad469ba3d4ea

parent

d9d580e0382ee11127c1f4a0691b6279b9e0dc67

1 files changed, 9 insertions(+), 4 deletions(-)

jump to
M openbox/screen.copenbox/screen.c

@@ -606,10 +606,15 @@ if (screen_desktop_timeout) {

/* 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