diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-05-03 23:50:05 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-05-04 11:53:26 +0200 |
commit | ec796afb6e7fdcdd9aa1e616e703cedc195d3e33 (patch) | |
tree | e725ac88558eb3819c894457f72c7ce686d74ac5 | |
parent | 394accbe4a4186bba273790bca8cef54d9be21ca (diff) |
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.
-rw-r--r-- | types/wlr_compositor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c index 7bf4d7c3..0236c40f 100644 --- a/types/wlr_compositor.c +++ b/types/wlr_compositor.c @@ -390,8 +390,7 @@ static void surface_apply_damage(struct wlr_surface *surface) { } static void surface_update_opaque_region(struct wlr_surface *surface) { - struct wlr_texture *texture = wlr_surface_get_texture(surface); - if (texture == NULL) { + if (!surface->has_buffer) { pixman_region32_clear(&surface->opaque_region); return; } |