mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
output: require commit after hardware cursor update
Up until now only the DRM backend required an output commit after updating the cursor. Unify this for all backends, because: - Screen capture can now catch cursor updates listening for output commits - In the future we want to make the cursor a regular wlr_output_layer, which would need an output commit to be updated anyways
This commit is contained in:
parent
08e14deeca
commit
c0881bdc01
2 changed files with 13 additions and 6 deletions
|
|
@ -1162,7 +1162,6 @@ static bool drm_connector_set_cursor(struct wlr_output *output,
|
|||
conn->cursor_height = buffer->height;
|
||||
}
|
||||
|
||||
wlr_output_update_needs_frame(output);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -1192,7 +1191,6 @@ static bool drm_connector_move_cursor(struct wlr_output *output,
|
|||
conn->cursor_x = box.x;
|
||||
conn->cursor_y = box.y;
|
||||
|
||||
wlr_output_update_needs_frame(output);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue