mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
output: don't move hidden cursors
When using the DRM backend and multiple outputs, that reduces the number of commits.
This commit is contained in:
parent
36dcad13d0
commit
a951fbb264
1 changed files with 6 additions and 0 deletions
|
|
@ -846,12 +846,18 @@ bool wlr_output_cursor_move(struct wlr_output_cursor *cursor,
|
|||
output_cursor_damage_whole(cursor);
|
||||
}
|
||||
|
||||
bool was_visible = cursor->visible;
|
||||
x *= cursor->output->scale;
|
||||
y *= cursor->output->scale;
|
||||
cursor->x = x;
|
||||
cursor->y = y;
|
||||
output_cursor_update_visible(cursor);
|
||||
|
||||
if (!was_visible && !cursor->visible) {
|
||||
// Cursor is still hidden, do nothing
|
||||
return true;
|
||||
}
|
||||
|
||||
if (cursor->output->hardware_cursor != cursor) {
|
||||
output_cursor_damage_whole(cursor);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue