mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
input-settings: fix device list iteration
Dereference the loop variable rather than the original list head. This fixes a regression introduced in4413b86a3
("backends: Replace ClutterDeviceManager usage in favor of ClutterSeat", 2019-10-04) which broke button scrolling with trackballs. Closes:https://gitlab.gnome.org/GNOME/mutter/-/issues/1120 (cherry picked from commit3e967d731a
)
This commit is contained in:
parent
9a2471db47
commit
ad500ef4e5
@ -818,7 +818,7 @@ update_trackball_scroll_button (MetaInputSettings *input_settings,
|
||||
|
||||
for (l = devices; l; l = l->next)
|
||||
{
|
||||
device = devices->data;
|
||||
device = l->data;
|
||||
|
||||
if (input_settings_class->is_trackball_device (input_settings, device))
|
||||
input_settings_class->set_scroll_button (input_settings, device, button);
|
||||
|
Loading…
Reference in New Issue
Block a user