mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
output: don't update disabled cursor texture
This commit is contained in:
parent
3c76b93272
commit
a63e21d94c
1 changed files with 5 additions and 0 deletions
|
|
@ -374,6 +374,11 @@ bool output_cursor_set_texture(struct wlr_output_cursor *cursor,
|
|||
int dst_width, int dst_height, enum wl_output_transform transform,
|
||||
int32_t hotspot_x, int32_t hotspot_y,
|
||||
struct wlr_drm_syncobj_timeline *wait_timeline, uint64_t wait_point) {
|
||||
if (texture == NULL && !cursor->enabled) {
|
||||
// Cursor is still disabled, do nothing
|
||||
return true;
|
||||
}
|
||||
|
||||
struct wlr_output *output = cursor->output;
|
||||
|
||||
if (cursor->output->hardware_cursor != cursor) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue