mirror of
https://github.com/swaywm/sway.git
synced 2025-11-19 06:59:52 -05:00
Detect opaque lockscreen when using a solid color
This commit is contained in:
parent
58b2c8ed14
commit
3b842f4eed
2 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue