diff options
Diffstat (limited to 'src/desktop.c')
-rw-r--r-- | src/desktop.c | 4 |
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); |