summaryrefslogtreecommitdiff
path: root/clients/simple-egl.c
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <conselvan2@gmail.com>2012-09-07 17:32:16 +0300
committerKristian Høgsberg <krh@bitplanet.net>2012-11-16 19:24:09 -0500
commitedce9c295c12c0d0e10f51aea1cbf62ed073254c (patch)
treed2a781600d7ceba3ab11ccfe65eb5ca64e78d3f3 /clients/simple-egl.c
parentb8fcca915b3345e0ac106766b1a678cac3ae6094 (diff)
downloadweston-edce9c295c12c0d0e10f51aea1cbf62ed073254c.tar.gz
simple-egl: Set the right size for the opaque region when fullscreen
window.window_size holds the size of the window in windowed mode. Use window.geometry for setting the opaque region since that holds the current size.
Diffstat (limited to 'clients/simple-egl.c')
-rw-r--r--clients/simple-egl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/simple-egl.c b/clients/simple-egl.c
index fcbea757..2c9a0a0b 100644
--- a/clients/simple-egl.c
+++ b/clients/simple-egl.c
@@ -409,8 +409,8 @@ redraw(void *data, struct wl_callback *callback, uint32_t time)
if (window->opaque || window->fullscreen) {
region = wl_compositor_create_region(window->display->compositor);
wl_region_add(region, 0, 0,
- window->window_size.width,
- window->window_size.height);
+ window->geometry.width,
+ window->geometry.height);
wl_surface_set_opaque_region(window->surface, region);
wl_region_destroy(region);
}