summaryrefslogtreecommitdiff
path: root/src/core/window.c
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2019-10-18 19:36:02 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2019-10-18 19:36:02 +0300
commit75aa437588e78bc1269e11a63ac8a146a473e728 (patch)
tree97a8b2a7189552e9a2b79d627288adc38752025b /src/core/window.c
parent2e9ca5046e03bea7541138611169f31c34fc6647 (diff)
downloadmetacity-75aa437588e78bc1269e11a63ac8a146a473e728.tar.gz
window: move shape clipping to MetaSurface
Shape region might not change when window is resized!
Diffstat (limited to 'src/core/window.c')
-rw-r--r--src/core/window.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 225bffd2..f45374f7 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -9220,19 +9220,6 @@ meta_window_update_shape_region (MetaWindow *window)
return;
}
- if (shape_region != None)
- {
- XserverRegion tmp;
-
- tmp = XFixesCreateRegion (xdisplay, &(XRectangle) {
- .width = window->rect.width,
- .height = window->rect.height
- }, 1);
-
- XFixesIntersectRegion (xdisplay, shape_region, shape_region, tmp);
- XFixesDestroyRegion (xdisplay, tmp);
- }
-
if (window->shape_region != None)
XFixesDestroyRegion (xdisplay, window->shape_region);
window->shape_region = shape_region;