From d564d06b1ce89e90e1aacc5433b5eabd38270973 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 23 Dec 2020 18:24:23 -0800 Subject: 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. --- src/desktop.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/desktop.c') 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); -- cgit v1.2.3