set the max settings properly, was setting max_vert for both.
make sure the desktop property is set when per-app settings change it
This commit is contained in:
parent
c1a124fcf2
commit
0771964c0f
1 changed files with 4 additions and 5 deletions
|
@ -683,7 +683,7 @@ static ObAppSettings *client_get_settings_state(ObClient *self)
|
||||||
if (settings->max_vert != -1)
|
if (settings->max_vert != -1)
|
||||||
self->max_vert = !!settings->max_vert;
|
self->max_vert = !!settings->max_vert;
|
||||||
if (settings->max_horz != -1)
|
if (settings->max_horz != -1)
|
||||||
self->max_vert = !!settings->max_horz;
|
self->max_horz = !!settings->max_horz;
|
||||||
|
|
||||||
if (settings->fullscreen != -1)
|
if (settings->fullscreen != -1)
|
||||||
self->fullscreen = !!settings->fullscreen;
|
self->fullscreen = !!settings->fullscreen;
|
||||||
|
@ -1019,10 +1019,6 @@ static void client_get_desktop(ObClient *self)
|
||||||
self->desktop = screen_desktop;
|
self->desktop = screen_desktop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (self->desktop != d) {
|
|
||||||
/* set the desktop hint, to make sure that it always exists */
|
|
||||||
PROP_SET32(self->window, net_wm_desktop, cardinal, self->desktop);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void client_get_layer(ObClient *self)
|
static void client_get_layer(ObClient *self)
|
||||||
|
@ -2173,6 +2169,9 @@ static void client_apply_startup_state(ObClient *self, gint x, gint y)
|
||||||
self->area.x = x;
|
self->area.x = x;
|
||||||
self->area.y = y;
|
self->area.y = y;
|
||||||
|
|
||||||
|
/* set the desktop hint, to make sure that it always exists */
|
||||||
|
PROP_SET32(self->window, net_wm_desktop, cardinal, self->desktop);
|
||||||
|
|
||||||
/* these are in a carefully crafted order.. */
|
/* these are in a carefully crafted order.. */
|
||||||
|
|
||||||
if (self->iconic) {
|
if (self->iconic) {
|
||||||
|
|
Loading…
Reference in a new issue