Type

Normal

Function Signature

(hook-fn vd-guid norm-vd-name lo)

Description

Gets triggered after the user has switched to another virtual desktop. vd-guid is the GUID for the virtual desktop, norm-vd-name is the name of the virtual desktop, and lo is the layout object for that virtual desktop.

Note that Jwno creates layout objects lazily. When switching to a virtual desktop that never had any windows opened on it, lo can be nil. And the window manager uses desktop names to uniquely identify them. Jwno's behavior is undefined, if you had more than one virtual desktop with the same name.

Windows uses localized (translated) strings as default names for virtual desktops. For example, your second virtual desktop will be called Desktop 2 in an English locale, or デスクトプ 2 in a Japanese locale. To make handling different languages easier, Jwno converts any default desktop name to a tuple [:default <idx>]. E.g. if the user switched to the second desktop, and never renamed it, norm-vd-name will equal to [:default 2].