clearer code paths
This commit is contained in:
parent
7d3e3ff6df
commit
d158b64282
3 changed files with 5 additions and 6 deletions
|
@ -1531,7 +1531,7 @@ static void event_handle_client(ObClient *client, XEvent *e)
|
||||||
#ifdef SHAPE
|
#ifdef SHAPE
|
||||||
if (extensions_shape && e->type == extensions_shape_event_basep) {
|
if (extensions_shape && e->type == extensions_shape_event_basep) {
|
||||||
client->shaped = ((XShapeEvent*)e)->shaped;
|
client->shaped = ((XShapeEvent*)e)->shaped;
|
||||||
frame_adjust_shape(client->frame);
|
frame_adjust_area(client->frame, FALSE, TRUE, FALSE);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,6 +51,7 @@ static void layout_title(ObFrame *self);
|
||||||
static void set_theme_statics(ObFrame *self);
|
static void set_theme_statics(ObFrame *self);
|
||||||
static void free_theme_statics(ObFrame *self);
|
static void free_theme_statics(ObFrame *self);
|
||||||
static gboolean frame_animate_iconify(gpointer 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_adjust_cursors(ObFrame *self);
|
||||||
static void frame_get_offscreen_buffer(ObFrame *self);
|
static void frame_get_offscreen_buffer(ObFrame *self);
|
||||||
static void frame_free_offscreen_buffer(ObFrame *self);
|
static void frame_free_offscreen_buffer(ObFrame *self);
|
||||||
|
@ -313,9 +314,6 @@ void frame_adjust_shape(ObFrame *self)
|
||||||
ShapeUnion, Unsorted);
|
ShapeUnion, Unsorted);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* the offscreen buffer's shape needs to match */
|
|
||||||
frame_get_offscreen_buffer(self);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void frame_adjust_area(ObFrame *self, gboolean moved,
|
void frame_adjust_area(ObFrame *self, gboolean moved,
|
||||||
|
@ -786,8 +784,10 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
|
||||||
if (resized) {
|
if (resized) {
|
||||||
self->need_render = TRUE;
|
self->need_render = TRUE;
|
||||||
framerender_frame(self);
|
framerender_frame(self);
|
||||||
/* this also updates the offscreen buffer */
|
|
||||||
frame_adjust_shape(self);
|
frame_adjust_shape(self);
|
||||||
|
|
||||||
|
/* the offscreen buffer's shape needs to match */
|
||||||
|
frame_get_offscreen_buffer(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!STRUT_EQUAL(self->size, oldsize)) {
|
if (!STRUT_EQUAL(self->size, oldsize)) {
|
||||||
|
|
|
@ -209,7 +209,6 @@ void frame_free(ObFrame *self);
|
||||||
void frame_show(ObFrame *self);
|
void frame_show(ObFrame *self);
|
||||||
void frame_hide(ObFrame *self);
|
void frame_hide(ObFrame *self);
|
||||||
void frame_adjust_theme(ObFrame *self);
|
void frame_adjust_theme(ObFrame *self);
|
||||||
void frame_adjust_shape(ObFrame *self);
|
|
||||||
void frame_adjust_area(ObFrame *self, gboolean moved,
|
void frame_adjust_area(ObFrame *self, gboolean moved,
|
||||||
gboolean resized, gboolean fake);
|
gboolean resized, gboolean fake);
|
||||||
void frame_adjust_client_area(ObFrame *self);
|
void frame_adjust_client_area(ObFrame *self);
|
||||||
|
|
Loading…
Reference in a new issue