mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-03 02:20:16 +01:00
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.
This commit is contained in:
parent
b8fcca915b
commit
edce9c295c
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue