all repos — openbox @ cd0204d6269634cad3085130dc78aed2dd9b1d55

openbox fork - make it a bit more like ryudo

fullscreen overrides aspect hints (because i say so)
Mikael Magnusson mikachu@comhem.se
commit

cd0204d6269634cad3085130dc78aed2dd9b1d55

parent

77c744f28580eaa4a1f422c5cf8d8b8dda2d295d

1 files changed, 18 insertions(+), 16 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -2059,26 +2059,28 @@ for this, min size is not substituted for base size ever. */

w -= self->base_size.width; h -= self->base_size.height; - if (self->min_ratio) - if (h * self->min_ratio > w) { - h = (gint)(w / self->min_ratio); + if (!self->fullscreen) { + if (self->min_ratio) + if (h * self->min_ratio > w) { + h = (gint)(w / self->min_ratio); - /* you cannot resize to nothing */ - if (h < 1) { - h = 1; - w = (gint)(h * self->min_ratio); + /* you cannot resize to nothing */ + if (h < 1) { + h = 1; + w = (gint)(h * self->min_ratio); + } } - } - if (self->max_ratio) - if (h * self->max_ratio < w) { - h = (gint)(w / self->max_ratio); + if (self->max_ratio) + if (h * self->max_ratio < w) { + h = (gint)(w / self->max_ratio); - /* you cannot resize to nothing */ - if (h < 1) { - h = 1; - w = (gint)(h * self->min_ratio); + /* you cannot resize to nothing */ + if (h < 1) { + h = 1; + w = (gint)(h * self->min_ratio); + } } - } + } w += self->base_size.width; h += self->base_size.height;