X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fframe.c;h=c55ff290717ab0bd9554d9d1a22437d2c56edc8d;hb=1b4ff4e93f8bc312a862d3f08afeb0f4809527ae;hp=47c3f0271b2fed6146831590935a96783273621e;hpb=1fad2da07f7fed1d640d57a2c7c2f666ebb409c4;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index 47c3f027..c55ff290 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -417,7 +417,6 @@ void frame_adjust_area(ObFrame *self, gboolean moved, if (resized) { framerender_frame(self); - frame_adjust_shape(self); } @@ -436,6 +435,9 @@ void frame_adjust_area(ObFrame *self, gboolean moved, if (focus_cycle_target == self->client) focus_cycle_draw_indicator(); } + if (resized && (self->decorations & OB_FRAME_DECOR_TITLEBAR)) + XResizeWindow(ob_display, self->label, self->label_width, + ob_rr_theme->label_height); } void frame_adjust_state(ObFrame *self) @@ -625,9 +627,6 @@ static void layout_title(ObFrame *self) } if (self->label_width < 1) self->label_width = 1; - XResizeWindow(ob_display, self->label, self->label_width, - ob_rr_theme->label_height); - if (!n) XUnmapWindow(ob_display, self->icon); if (!d) XUnmapWindow(ob_display, self->desk); if (!s) XUnmapWindow(ob_display, self->shade);