diff options
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 7dcc8e51..e7bdf677 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -360,10 +360,11 @@ bool output_has_opaque_overlay_layer_surface(struct sway_output *output) { | |||
360 | pixman_region32_copy(&surface_opaque_box, &wlr_surface->opaque_region); | 360 | pixman_region32_copy(&surface_opaque_box, &wlr_surface->opaque_region); |
361 | pixman_region32_translate(&surface_opaque_box, | 361 | pixman_region32_translate(&surface_opaque_box, |
362 | sway_layer_surface->geo.x, sway_layer_surface->geo.y); | 362 | sway_layer_surface->geo.x, sway_layer_surface->geo.y); |
363 | bool contains = pixman_region32_contains_rectangle(&surface_opaque_box, | 363 | pixman_region_overlap_t contains = |
364 | &output_box); | 364 | pixman_region32_contains_rectangle(&surface_opaque_box, &output_box); |
365 | pixman_region32_fini(&surface_opaque_box); | 365 | pixman_region32_fini(&surface_opaque_box); |
366 | if (contains) { | 366 | |
367 | if (contains == PIXMAN_REGION_IN) { | ||
367 | return true; | 368 | return true; |
368 | } | 369 | } |
369 | } | 370 | } |