don't crash from very short windows
Dana Jansens danakj@orodu.net
1 files changed,
8 insertions(+),
2 deletions(-)
jump to
M
openbox/frame.c
→
openbox/frame.c
@@ -717,7 +717,10 @@
XUnmapWindow(ob_display, self->handle); } - if (self->bwidth && !self->max_horz) { + if (self->bwidth && !self->max_horz && + (self->client->area.height + self->size.top + + self->size.bottom) > ob_rr_theme->grip_width * 2) + { XMoveResizeWindow(ob_display, self->left, 0, self->bwidth + ob_rr_theme->grip_width,@@ -730,7 +733,10 @@ XMapWindow(ob_display, self->left);
} else XUnmapWindow(ob_display, self->left); - if (self->bwidth && !self->max_horz) { + if (self->bwidth && !self->max_horz && + (self->client->area.height + self->size.top + + self->size.bottom) > ob_rr_theme->grip_width * 2) + { XMoveResizeWindow(ob_display, self->right, self->client->area.width + self->cbwidth_l + self->cbwidth_r + self->bwidth,