summaryrefslogtreecommitdiff
path: root/src/desktop.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-01-01 00:49:25 -0800
committerVito Caputo <vcaputo@pengaru.com>2021-01-01 00:49:25 -0800
commit229a84202f3fda6f175e9861208b9fc0b7fb3c34 (patch)
tree400df52071ed44e10856a9029636419bbf71b5b3 /src/desktop.c
parentd564d06b1ce89e90e1aacc5433b5eabd38270973 (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.c')
-rw-r--r--src/desktop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/desktop.c b/src/desktop.c
index 6038383..8abc4d6 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -29,10 +29,12 @@
#include "xwindow.h"
/* make the specified desktop the most recently used one */
-void vwm_desktop_mru(vwm_t *vwm, vwm_desktop_t *desktop)
+vwm_desktop_t * vwm_desktop_mru(vwm_t *vwm, vwm_desktop_t *desktop)
{
VWM_TRACE("MRU desktop: %p", desktop);
list_move(&desktop->desktops_mru, &vwm->desktops_mru);
+
+ return desktop;
}
© All Rights Reserved