fullscreen overrides aspect hints (because i say so)

This commit is contained in:
Mikael Magnusson 2004-03-20 21:38:04 +00:00
parent 77c744f285
commit cd0204d626

View file

@ -2059,6 +2059,7 @@ void client_configure_full(ObClient *self, ObCorner anchor,
w -= self->base_size.width;
h -= self->base_size.height;
if (!self->fullscreen) {
if (self->min_ratio)
if (h * self->min_ratio > w) {
h = (gint)(w / self->min_ratio);
@ -2079,6 +2080,7 @@ void client_configure_full(ObClient *self, ObCorner anchor,
w = (gint)(h * self->min_ratio);
}
}
}
w += self->base_size.width;
h += self->base_size.height;