all repos — openbox @ 36231e5cb39e7f38c20cceebf26d0be66a17a112

openbox fork - make it a bit more like ryudo

fix for how base-size is used to comply with the icccm
Dana Jansens danakj@orodu.net
commit

36231e5cb39e7f38c20cceebf26d0be66a17a112

parent

5338fdbf2edbc22f234de6c7542996142751415c

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

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

@@ -1677,16 +1677,13 @@ minw = self->base_size.width;

minh = self->base_size.height; } - w -= basew; - h -= baseh; - if (user) { /* for interactive resizing. have to move half an increment in each direction. */ /* how far we are towards the next size inc */ - int mw = w % self->size_inc.width; - int mh = h % self->size_inc.height; + int mw = (w - basew) % self->size_inc.width; + int mh = (h - baseh) % self->size_inc.height; /* amount to add */ int aw = self->size_inc.width / 2; int ah = self->size_inc.height / 2;

@@ -1707,6 +1704,9 @@ if (w < minw) w = minw;

if (h > self->max_size.height) h = self->max_size.height; if (h < minh) h = minh; } + + w -= basew; + h -= baseh; /* keep to the increments */ w /= self->size_inc.width;