workspaces: Allow switching/sending to the last used workspace

Actions GoToDesktop and SendToDesktop now support the new direction
called "last" that corresponds to the last used workspace (see Openbox
help[1] for reference).

[1]: http://openbox.org/wiki/Help:Actions#GoToDesktop
This commit is contained in:
Consus 2022-06-18 03:09:18 +03:00 committed by Consolatis
parent 56a6d08fc0
commit ca56357b5f
3 changed files with 9 additions and 2 deletions

View file

@ -203,6 +203,7 @@ struct server {
/* Workspaces */
struct wl_list workspaces; /* struct workspace.link */
struct workspace *workspace_current;
struct workspace *workspace_last;
struct wl_list outputs;
struct wl_listener new_output;