diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-07 00:17:08 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-07 00:17:08 +1000 |
commit | 3b842f4eed7276f44b0a9154976ecfeef07aa867 (patch) | |
tree | 235dd57784778409413e911064bf830cf40c0689 /sway/desktop | |
parent | 58b2c8ed142ded772382ae7811a217a5590b0c1c (diff) | |
download | sway-3b842f4eed7276f44b0a9154976ecfeef07aa867.tar.xz |
Detect opaque lockscreen when using a solid color
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index fa85d260..329632b6 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -934,7 +934,7 @@ bool output_has_opaque_lockscreen(struct sway_output *output, .x2 = output->swayc->current.swayc_width, .y2 = output->swayc->current.swayc_height, }; - if (pixman_region32_contains_rectangle(&wlr_surface->current->opaque, + if (pixman_region32_contains_rectangle(&wlr_surface->current.opaque, &output_box)) { return true; } |