summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-12-08 14:59:14 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-12-08 14:59:14 +0000
commit15d28dfd97ddc799b70407c05b9c5212d92c24f4 (patch)
tree30814a1622842a8accea1ba0e3ffea56aad80783 /src
parent48b00403b672b389e7a84f69e1e85d06badcb124 (diff)
downloadmetacity-15d28dfd97ddc799b70407c05b9c5212d92c24f4.tar.gz
also treat empty string as "unset" in this function.
2002-12-08 Havoc Pennington <hp@pobox.com> * src/prefs.c (update_workspace_name): also treat empty string as "unset" in this function.
Diffstat (limited to 'src')
-rw-r--r--src/prefs.c8
-rw-r--r--src/stack.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/prefs.c b/src/prefs.c
index 502506e0..9eb4c2ae 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -1566,7 +1566,13 @@ update_workspace_name (const char *name,
return FALSE;
}
- if (value != NULL)
+ /* This is a bad hack. We have to treat empty string as
+ * "unset" because the root window property can't contain
+ * null. So it gets empty string instead and we don't want
+ * that to result in setting the empty string as a value that
+ * overrides "unset".
+ */
+ if (value != NULL && *value != '\0')
{
g_free (workspace_names[i]);
workspace_names[i] = g_strdup (value);
diff --git a/src/stack.c b/src/stack.c
index 050360c0..e91c6201 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -537,6 +537,8 @@ create_constraints (Constraint **constraints,
if (!WINDOW_IN_STACK (w))
{
+ meta_topic (META_DEBUG_STACK, "Window %s not in the stack, not constraining it\n",
+ w->desc);
tmp = tmp->next;
continue;
}