This may slightly degrade UX, but this prevents the temporary buffer from
being reallocated for every frame when the magnifier spans multiple
outputs with different scales/transforms.
};
box_logical_to_physical(&cursor_pos, output->wlr_output);
- bool cursor_in_output = wlr_box_contains_point(&output_box,
- cursor_pos.x, cursor_pos.y);
- if (fullscreen && !cursor_in_output) {
+ if (!wlr_box_contains_point(&output_box,
+ cursor_pos.x, cursor_pos.y)) {
return;
}