Commit cae5e601 authored by Carlos Garnacho's avatar Carlos Garnacho

Merge branch 'avoid-pointer-reset' into 'gtk-3-24'

wayland: avoid set_cursor() when unchanged or invisible

See merge request !2822
parents c87b2135 cf7f7df1
Pipeline #244465 passed with stages
in 24 minutes and 59 seconds
......@@ -4644,6 +4644,9 @@ pointer_surface_update_scale (GdkDevice *device)
return;
}
if (!pointer->pointer_surface_outputs)
return;
scale = 1;
for (l = pointer->pointer_surface_outputs; l != NULL; l = l->next)
{
......@@ -4653,6 +4656,8 @@ pointer_surface_update_scale (GdkDevice *device)
scale = MAX (scale, output_scale);
}
if (pointer->current_output_scale == scale)
return;
pointer->current_output_scale = scale;
if (pointer->cursor)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment