missed some stuff?
This commit is contained in:
parent
7ffa091d5b
commit
2c507a7207
2 changed files with 8 additions and 3 deletions
|
@ -673,9 +673,13 @@ static ObAppSettings *client_get_settings_state(ObClient *self)
|
|||
if (settings->fullscreen != -1)
|
||||
self->fullscreen = !!settings->fullscreen;
|
||||
|
||||
if (settings->desktop < screen_num_desktops
|
||||
|| settings->desktop == DESKTOP_ALL)
|
||||
if (settings->desktop) {
|
||||
if (settings->desktop == DESKTOP_ALL)
|
||||
self->desktop = settings->desktop;
|
||||
else if (settings->desktop > 0 &&
|
||||
settings->desktop <= screen_num_desktops)
|
||||
self->desktop = settings->desktop - 1;
|
||||
}
|
||||
|
||||
if (settings->layer == -1) {
|
||||
self->below = TRUE;
|
||||
|
|
|
@ -215,6 +215,7 @@ static void parse_per_app_settings(ObParseInst *i, xmlDocPtr doc,
|
|||
gint i = parse_int(doc, n);
|
||||
if (i > 0)
|
||||
settings->desktop = i;
|
||||
}
|
||||
g_free(s);
|
||||
} else
|
||||
settings->desktop = 0;
|
||||
|
|
Loading…
Reference in a new issue