all repos — openbox @ ebdfbdabbe503ea479525c2a0148ce50f7003b55

openbox fork - make it a bit more like ryudo

keep things in min/max bounds properly
Dana Jansens danakj@orodu.net
commit

ebdfbdabbe503ea479525c2a0148ce50f7003b55

parent

5673ab7e708fa0368ec8e1056a2f61ca8ba49848

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/client.ccsrc/client.cc

@@ -1149,10 +1149,10 @@ // if this is a user-requested resize, then check against min/max sizes

// and aspect ratios // smaller than min size or bigger than max size? + if (w > _max_size.width()) w = _max_size.width(); if (w < _min_size.width()) w = _min_size.width(); - else if (w > _max_size.width()) w = _max_size.width(); + if (h > _max_size.height()) h = _max_size.height(); if (h < _min_size.height()) h = _min_size.height(); - else if (h > _max_size.height()) h = _max_size.height(); // adjust the height ot match the width for the aspect ratios if (_min_ratio)