X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.c;h=04dbe6e2b35cd32bcd80c534f3000092f330f930;hb=cf478381b3e386dc0478403cf1a73b4d3ec6fa61;hp=8f947e49d49e289aea1bf48f2564b899fe0cdf43;hpb=7d3e3ff6dfda1fa87165d9823e47cd2c9dd9f57e;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index 8f947e49..04dbe6e2 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -51,6 +51,7 @@ static void layout_title(ObFrame *self); static void set_theme_statics(ObFrame *self); static void free_theme_statics(ObFrame *self); static gboolean frame_animate_iconify(gpointer self); +static void frame_adjust_shape(ObFrame *self); static void frame_adjust_cursors(ObFrame *self); static void frame_get_offscreen_buffer(ObFrame *self); static void frame_free_offscreen_buffer(ObFrame *self); @@ -313,9 +314,6 @@ void frame_adjust_shape(ObFrame *self) ShapeUnion, Unsorted); } #endif - - /* the offscreen buffer's shape needs to match */ - frame_get_offscreen_buffer(self); } void frame_adjust_area(ObFrame *self, gboolean moved, @@ -786,8 +784,10 @@ void frame_adjust_area(ObFrame *self, gboolean moved, if (resized) { self->need_render = TRUE; framerender_frame(self); - /* this also updates the offscreen buffer */ frame_adjust_shape(self); + + /* the offscreen buffer's shape needs to match */ + frame_get_offscreen_buffer(self); } if (!STRUT_EQUAL(self->size, oldsize)) {