diff options
author | Scott Moreau <oreaus@gmail.com> | 2012-11-19 14:17:52 -0700 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-11-19 22:01:11 -0500 |
commit | d1446cb35116f882bb782d05f7202201fee794cd (patch) | |
tree | 8b99d9186958b013e06550f9468cb892f9577963 | |
parent | e3d5e3029e04a19c5d2a51838701604f1f46683d (diff) |
simple-egl: Reset opaque region if not fullscreen.
If simple-egl is toggled fullscreen, the opqaue region is set for the surface
but never removed after exiting fullscreen. This patch resets the opaque region
to 0 if the surface is not fullscreen and -o was not passed. This fixes the
problem introduced sometime since d7f282b84e, when this was last fixed.
-rw-r--r-- | clients/simple-egl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/simple-egl.c b/clients/simple-egl.c index 2c9a0a0b..12bc93d3 100644 --- a/clients/simple-egl.c +++ b/clients/simple-egl.c @@ -413,6 +413,8 @@ redraw(void *data, struct wl_callback *callback, uint32_t time) window->geometry.height); wl_surface_set_opaque_region(window->surface, region); wl_region_destroy(region); + } else { + wl_surface_set_opaque_region(window->surface, NULL); } window->callback = wl_surface_frame(window->surface); |