Basically reimplement #25. A nice shortcut could be simply calling `onDesktopSwitch(compat.lastDesktop)` on startup, but it needs testing