mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-11-05 18:24:04 +00:00
window: Set opaque region to window size if we're fullscreen
This commit is contained in:
parent
724c8d9e7c
commit
598477d832
1 changed files with 11 additions and 4 deletions
|
@ -2189,10 +2189,17 @@ frame_resize_handler(struct widget *widget,
|
|||
widget_set_allocation(widget, 0, 0, width, height);
|
||||
|
||||
if (child->opaque) {
|
||||
frame_opaque_rect(frame->frame, &opaque.x, &opaque.y,
|
||||
&opaque.width, &opaque.height);
|
||||
wl_region_add(widget->surface->opaque_region,
|
||||
opaque.x, opaque.y, opaque.width, opaque.height);
|
||||
if (widget->window->type != TYPE_FULLSCREEN) {
|
||||
frame_opaque_rect(frame->frame, &opaque.x, &opaque.y,
|
||||
&opaque.width, &opaque.height);
|
||||
|
||||
wl_region_add(widget->surface->opaque_region,
|
||||
opaque.x, opaque.y,
|
||||
opaque.width, opaque.height);
|
||||
} else {
|
||||
wl_region_add(widget->surface->opaque_region,
|
||||
0, 0, width, height);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue