From 804c2be976434010dea5353d2d46ae7efb2e6bef Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Tue, 30 Jul 2013 09:49:03 +0200 Subject: [PATCH] MetaWayland: or maybe don't do it for override redirect windows? I don't know, OR windows are not appearing at all. --- src/wayland/meta-wayland.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c index 3d2aeb388..82e510218 100644 --- a/src/wayland/meta-wayland.c +++ b/src/wayland/meta-wayland.c @@ -210,16 +210,20 @@ surface_process_damage (MetaWaylandSurface *surface, { MetaWindowActor *window_actor = META_WINDOW_ACTOR (meta_window_get_compositor_private (surface->window)); - MetaRectangle rect; - cairo_rectangle_int_t cairo_rect; - meta_window_get_input_rect (surface->window, &rect); - cairo_rect.x = rect.x; - cairo_rect.y = rect.y; - cairo_rect.width = rect.width; - cairo_rect.height = rect.height; + if (!surface->window->override_redirect) + { + MetaRectangle rect; + cairo_rectangle_int_t cairo_rect; - cairo_region_intersect_rectangle (region, &cairo_rect); + meta_window_get_input_rect (surface->window, &rect); + cairo_rect.x = 0; + cairo_rect.y = 0; + cairo_rect.width = rect.width; + cairo_rect.height = rect.height; + + cairo_region_intersect_rectangle (region, &cairo_rect); + } if (window_actor) {