shell: Make sure the black surface is opaque

So we don't repaint anything below it.
This commit is contained in:
Kristian Høgsberg 2012-08-03 16:31:36 -04:00
parent 982387011f
commit 61f00f52fa

View file

@ -1388,6 +1388,8 @@ create_black_surface(struct weston_compositor *ec,
surface->private = fs_surface;
weston_surface_configure(surface, x, y, w, h);
weston_surface_set_color(surface, 0.0, 0.0, 0.0, 1);
pixman_region32_init_rect(&surface->opaque, 0, 0, w, h);
return surface;
}