mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
wlr_compositor: Decide opacity from new has_buffer flag.
`wlr_surface_get_texture` will always return NULL if the compositor was not given a renderer.
This commit is contained in:
parent
394accbe4a
commit
ec796afb6e
1 changed files with 1 additions and 2 deletions
|
|
@ -390,8 +390,7 @@ static void surface_apply_damage(struct wlr_surface *surface) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void surface_update_opaque_region(struct wlr_surface *surface) {
|
static void surface_update_opaque_region(struct wlr_surface *surface) {
|
||||||
struct wlr_texture *texture = wlr_surface_get_texture(surface);
|
if (!surface->has_buffer) {
|
||||||
if (texture == NULL) {
|
|
||||||
pixman_region32_clear(&surface->opaque_region);
|
pixman_region32_clear(&surface->opaque_region);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue