X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.c;h=327507f2e56ceefadc054e2ed5a1d54992147801;hb=3ce8f836749c9f74f6888251f0a7f2ff601830c0;hp=cbb6dfda7d19d08693aac325933c47988166b88a;hpb=a72371b41f48a2d6a1e55099456d30d3b678b66c;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index cbb6dfda..327507f2 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -183,7 +183,6 @@ void frame_adjust_theme(ObFrame *self) { free_theme_statics(self); set_theme_statics(self); - frame_adjust_area(self, TRUE, TRUE, FALSE); } void frame_adjust_shape(ObFrame *self) @@ -271,7 +270,8 @@ void frame_adjust_area(ObFrame *self, gboolean moved, if (self->decorations & OB_FRAME_DECOR_TITLEBAR) self->innersize.top += ob_rr_theme->title_height + self->rbwidth + (self->rbwidth - self->bwidth); - if (self->decorations & OB_FRAME_DECOR_HANDLE) + if (self->decorations & OB_FRAME_DECOR_HANDLE && + ob_rr_theme->show_handle) self->innersize.bottom += ob_rr_theme->handle_height + self->rbwidth + (self->rbwidth - self->bwidth); @@ -312,7 +312,9 @@ void frame_adjust_area(ObFrame *self, gboolean moved, layout_title(self); if (!fake) { - if (self->decorations & OB_FRAME_DECOR_HANDLE) { + if (self->decorations & OB_FRAME_DECOR_HANDLE && + ob_rr_theme->show_handle) + { XMoveResizeWindow(ob_display, self->handle, -self->bwidth, FRAME_HANDLE_Y(self), self->width, ob_rr_theme->handle_height);