[metacity/wip/invisible-borders: 21/25] frames: add dest_kind to apply_cairo_region_to_window
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/wip/invisible-borders: 21/25] frames: add dest_kind to apply_cairo_region_to_window
- Date: Tue, 20 Jan 2015 13:14:19 +0000 (UTC)
commit ef570cd84ccb299690f0ce7f16572b51cb4b2da5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Jan 19 20:57:07 2015 +0200
frames: add dest_kind to apply_cairo_region_to_window
src/ui/frames.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index bcbddf2..518185a 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -827,6 +827,7 @@ static void
apply_cairo_region_to_window (Display *display,
Window xwindow,
cairo_region_t *region,
+ int dest_kind,
int op)
{
int n_rects, i;
@@ -848,7 +849,7 @@ apply_cairo_region_to_window (Display *display,
}
XShapeCombineRectangles (display, xwindow,
- ShapeBounding, 0, 0, rects, n_rects,
+ dest_kind, 0, 0, rects, n_rects,
op, YXBanded);
g_free (rects);
@@ -1108,7 +1109,7 @@ meta_frames_apply_shapes (MetaFrames *frames,
cairo_region_destroy (client_region);
apply_cairo_region_to_window (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), shape_window,
- window_region, ShapeUnion);
+ window_region, ShapeBounding, ShapeUnion);
/* Now copy shape_window shape to the real frame */
XShapeCombineShape (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), frame->xwindow, ShapeBounding,
@@ -1128,7 +1129,7 @@ meta_frames_apply_shapes (MetaFrames *frames,
frame->xwindow);
apply_cairo_region_to_window (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), frame->xwindow,
- window_region, ShapeSet);
+ window_region, ShapeBounding, ShapeSet);
}
frame->shape_applied = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]