X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.c;h=cefa389e50b58d6362ccfb78020313d5cc88b929;hb=1c98d2e3a6c721e9b2c7ce9a4343d06e4f714261;hp=7bcd420f2c3c8e6a4ece24257d80041b831cfabf;hpb=73b3838d5e22b209143ab236a2b329aa9be65475;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index 7bcd420f..cefa389e 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -22,6 +22,7 @@ #include "openbox.h" #include "extensions.h" #include "prop.h" +#include "grab.h" #include "config.h" #include "framerender.h" #include "mainloop.h" @@ -716,7 +717,10 @@ void frame_adjust_area(ObFrame *self, gboolean moved, 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, @@ -729,7 +733,10 @@ void frame_adjust_area(ObFrame *self, gboolean moved, } 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,