mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
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.
This commit is contained in:

committed by
Havoc Pennington

parent
48b00403b6
commit
15d28dfd97
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user