summaryrefslogtreecommitdiff
path: root/src/desktop.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-12-23 18:24:23 -0800
committerVito Caputo <vcaputo@pengaru.com>2020-12-23 18:25:55 -0800
commitd564d06b1ce89e90e1aacc5433b5eabd38270973 (patch)
tree18cac48f7687c9cbacf343baa6c9c047c81befd7 /src/desktop.c
parent3161db573424a554b536aaa492397341b84683ce (diff)
desktop: drop unused desktop names
At some point I wanted to support naming virtual desktops, but that never materialized and I don't find myself wishing it was there.
Diffstat (limited to 'src/desktop.c')
-rw-r--r--src/desktop.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/desktop.c b/src/desktop.c
index e6130e0..6038383 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -138,7 +138,7 @@ vwm_desktop_t * vwm_desktop_next(vwm_t *vwm, vwm_desktop_t *desktop, vwm_directi
}
/* create a virtual desktop */
-vwm_desktop_t * vwm_desktop_create(vwm_t *vwm, char *name)
+vwm_desktop_t * vwm_desktop_create(vwm_t *vwm)
{
vwm_desktop_t *desktop;
@@ -148,8 +148,6 @@ vwm_desktop_t * vwm_desktop_create(vwm_t *vwm, char *name)
goto _fail;
}
- desktop->name = name == NULL ? name : strdup(name);
-
list_add_tail(&desktop->desktops, &vwm->desktops);
list_add_tail(&desktop->desktops_mru, &vwm->desktops_mru);
© All Rights Reserved