From: "Rodolfo García Peñas (kix)" <[email protected]>
This patch assigns always the clip to NULL and only if the clip is
needed is created.
This patch mainly is more clear/clean.
---
src/workspace.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/workspace.c b/src/workspace.c
index 3734b49..491452b 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -88,16 +88,15 @@ int wWorkspaceNew(WScreen *scr)
wspace = wmalloc(sizeof(WWorkspace));
wspace->name = NULL;
+ wspace->clip = NULL;
if (!wspace->name) {
wspace->name = wmalloc(strlen(_("Workspace %i")) + 8);
sprintf(wspace->name, _("Workspace %i"),
scr->workspace_count);
}
- if (!wPreferences.flags.noclip) {
+ if (!wPreferences.flags.noclip)
wspace->clip = wDockCreate(scr, WM_CLIP);
- } else
- wspace->clip = NULL;
list = wmalloc(sizeof(WWorkspace *) * scr->workspace_count);
--
1.7.10.4
--
To unsubscribe, send mail to [email protected].