diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-01-01 00:49:25 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-01-01 00:49:25 -0800 |
commit | 229a84202f3fda6f175e9861208b9fc0b7fb3c34 (patch) | |
tree | 400df52071ed44e10856a9029636419bbf71b5b3 /src/desktop.h | |
parent | d564d06b1ce89e90e1aacc5433b5eabd38270973 (diff) |
*: return MRU object from _mru() funcs
minor ergonomic improvement; enables plain wrapping of creates or
other relevant object pointers with _mru() calls without
requiring an intermediate storage variable.
Diffstat (limited to 'src/desktop.h')
-rw-r--r-- | src/desktop.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop.h b/src/desktop.h index 5c83a4c..1503407 100644 --- a/src/desktop.h +++ b/src/desktop.h @@ -14,7 +14,7 @@ typedef struct _vwm_desktop_t { vwm_window_t *focused_window; /* the focused window on this virtual desktop */ } vwm_desktop_t; -void vwm_desktop_mru(vwm_t *vwm, vwm_desktop_t *desktop); +vwm_desktop_t * vwm_desktop_mru(vwm_t *vwm, vwm_desktop_t *desktop); int vwm_desktop_focus(vwm_t *vwm, vwm_desktop_t *desktop); vwm_desktop_t * vwm_desktop_create(vwm_t *vwm); void vwm_desktop_destroy(vwm_t *vwm, vwm_desktop_t *desktop); |