diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-06-28 15:33:16 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-06-28 15:33:16 +0300 |
commit | 6ddb8049064873a3b32be8ffcaf0c8af8e319881 (patch) | |
tree | 8e59615c522b66e494c76b779a804353cb06719d | |
parent | d474b0bf031dfde58005436f05bca4bc59a7b35a (diff) | |
download | metacity-6ddb8049064873a3b32be8ffcaf0c8af8e319881.tar.gz |
window: do not modify shape
-rw-r--r-- | src/core/window.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/core/window.c b/src/core/window.c index cfca6fce..bd9790a3 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -9122,34 +9122,6 @@ meta_window_update_shape_region (MetaWindow *window) meta_error_trap_pop (window->display); - if (shape_region != NULL) - { - cairo_rectangle_int_t client_area; - cairo_region_overlap_t overlap; - - client_area.x = 0; - client_area.y = 0; - client_area.width = window->rect.width; - client_area.height = window->rect.height; - - /* The shape we get back from the client may have coordinates - * outside of the frame. The X SHAPE Extension requires that - * the overall shape the client provides never exceeds the - * "bounding rectangle" of the window -- the shape that the - * window would have gotten if it was unshaped. In our case, - * this is simply the client area. - */ - cairo_region_intersect_rectangle (shape_region, &client_area); - - /* Some applications might explicitly set their bounding region - * to the client area. Detect these cases, and throw out the - * bounding region in this case. - */ - overlap = cairo_region_contains_rectangle (shape_region, &client_area); - if (overlap == CAIRO_REGION_OVERLAP_IN) - g_clear_pointer (&shape_region, cairo_region_destroy); - } - if (cairo_region_equal (window->shape_region, shape_region)) { cairo_region_destroy (shape_region); |