output: don't update disabled cursor texture

This commit is contained in:
yuiiio 2025-03-06 21:06:56 +09:00 committed by Simon Ser
parent 3c76b93272
commit a63e21d94c

View file

@ -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) {