all repos — openbox @ 9a3464b8e3711a6f0e823b840576041f5d4d0b00

openbox fork - make it a bit more like ryudo

that change was a bug after all. mika was right!
Dana Jansens danakj@orodu.net
commit

9a3464b8e3711a6f0e823b840576041f5d4d0b00

parent

5ed8f271862562e88cb60177c05f2c35d194bf68

1 files changed, 8 insertions(+), 4 deletions(-)

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

@@ -2850,8 +2850,8 @@ if (!(w == self->area.width && h == self->area.height))

SIZE_SET(self->logical_size, logicalw, logicalh); /* figure out if we moved or resized or what */ - moved = x != self->area.x || y != self->area.y; - resized = w != self->area.width || h != self->area.height; + moved = (x != self->area.x || y != self->area.y); + resized = (w != self->area.width || h != self->area.height); oldw = self->area.width; oldh = self->area.height;

@@ -2917,8 +2917,12 @@ XSendEvent(event.xconfigure.display, event.xconfigure.window,

FALSE, StructureNotifyMask, &event); } - /* if the client is shrinking, then resize the frame before the client */ - if (send_resize_client && (w <= oldw && h <= oldh)) { + /* if the client is shrinking, then resize the frame before the client. + + both of these resize sections may run, because the top one only resizes + in the direction that is growing + */ + if (send_resize_client && (w <= oldw || h <= oldh)) { frame_adjust_client_area(self->frame); XResizeWindow(ob_display, self->window, w, h); }