|
|
@ -930,16 +930,13 @@ bool output_has_opaque_lockscreen(struct sway_output *output,
|
|
|
|
if (wlr_surface->resource->client != seat->exclusive_client) {
|
|
|
|
if (wlr_surface->resource->client != seat->exclusive_client) {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int nrects;
|
|
|
|
pixman_box32_t output_box = {
|
|
|
|
pixman_box32_t *rects =
|
|
|
|
.x2 = output->swayc->current.swayc_width,
|
|
|
|
pixman_region32_rectangles(&wlr_surface->current->opaque, &nrects);
|
|
|
|
.y2 = output->swayc->current.swayc_height,
|
|
|
|
for (int i = 0; i < nrects; ++i) {
|
|
|
|
};
|
|
|
|
pixman_box32_t *rect = &rects[i];
|
|
|
|
if (pixman_region32_contains_rectangle(&wlr_surface->current->opaque,
|
|
|
|
if (rect->x1 <= 0 && rect->y1 <= 0 &&
|
|
|
|
&output_box)) {
|
|
|
|
rect->x2 >= output->swayc->current.swayc_width &&
|
|
|
|
return true;
|
|
|
|
rect->y2 >= output->swayc->current.swayc_height) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|