mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
magnifier: show magnifier only in one output
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.
This commit is contained in:
parent
6dc8e279ec
commit
3f56814497
1 changed files with 2 additions and 3 deletions
|
|
@ -57,9 +57,8 @@ magnifier_draw(struct output *output, struct wlr_buffer *output_buffer, struct w
|
|||
};
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue