diff options
author | 2018-07-07 00:17:08 +1000 | |
---|---|---|
committer | 2018-07-07 00:17:08 +1000 | |
commit | 3b842f4eed7276f44b0a9154976ecfeef07aa867 (patch) | |
tree | 235dd57784778409413e911064bf830cf40c0689 /sway/desktop/output.c | |
parent | Use infinite opaque region in swaylock (diff) | |
download | sway-3b842f4eed7276f44b0a9154976ecfeef07aa867.tar.gz sway-3b842f4eed7276f44b0a9154976ecfeef07aa867.tar.zst sway-3b842f4eed7276f44b0a9154976ecfeef07aa867.zip |
Detect opaque lockscreen when using a solid color
Diffstat (limited to 'sway/desktop/output.c')
-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, | |||
934 | .x2 = output->swayc->current.swayc_width, | 934 | .x2 = output->swayc->current.swayc_width, |
935 | .y2 = output->swayc->current.swayc_height, | 935 | .y2 = output->swayc->current.swayc_height, |
936 | }; | 936 | }; |
937 | if (pixman_region32_contains_rectangle(&wlr_surface->current->opaque, | 937 | if (pixman_region32_contains_rectangle(&wlr_surface->current.opaque, |
938 | &output_box)) { | 938 | &output_box)) { |
939 | return true; | 939 | return true; |
940 | } | 940 | } |