From becf5a342f92f46ca73aac35b9af88eceb1de8c5 Mon Sep 17 00:00:00 2001 From: Xiong Zhang Date: Fri, 29 Nov 2013 11:18:14 +0800 Subject: [PATCH] src/shell.c: set black_surface->width and height full screen black_surface doesn't have associated wl_buffer, so black_surface->width and height can't get value through weston_surface_commit(). then weston_surface_damage(black_surface) will be wrong in shell_stack_fullscreen(), the result is that we can't see a full screen view whe APP window's size isn't equal to output's size like running weston-gears Signed-off-by: Xiong Zhang --- src/shell.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shell.c b/src/shell.c index 605f0909..ebcf3e20 100644 --- a/src/shell.c +++ b/src/shell.c @@ -2254,6 +2254,8 @@ create_black_surface(struct weston_compositor *ec, pixman_region32_init_rect(&surface->opaque, 0, 0, w, h); pixman_region32_fini(&surface->input); pixman_region32_init_rect(&surface->input, 0, 0, w, h); + surface->width = w; + surface->height = h; weston_view_configure(view, x, y, w, h);