backends/x11: Fix middle button emulation settings

Update the name of the property used to toggle middle click emulation to
"libinput Middle Emulation Enabled".

Fix: <#1881>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2000>
This commit is contained in:
José Expósito 2021-09-14 19:58:20 +02:00 committed by Marge Bot
parent 922878acc6
commit 36b5719a3b

View File

@ -848,7 +848,7 @@ meta_input_settings_x11_set_mouse_middle_click_emulation (MetaInputSettings *se
if (!is_mouse (settings, device))
return;
change_property (device, "libinput Middle Click Emulation Enabled",
change_property (device, "libinput Middle Emulation Enabled",
XA_INTEGER, 8, &value, 1);
}
@ -862,7 +862,7 @@ meta_input_settings_x11_set_touchpad_middle_click_emulation (MetaInputSettings
if (!meta_input_settings_x11_is_touchpad_device (settings, device))
return;
change_property (device, "libinput Middle Click Emulation Enabled",
change_property (device, "libinput Middle Emulation Enabled",
XA_INTEGER, 8, &value, 1);
}
@ -876,7 +876,7 @@ meta_input_settings_x11_set_trackball_middle_click_emulation (MetaInputSettings
if (!meta_input_settings_x11_is_trackball_device (settings, device))
return;
change_property (device, "libinput Middle Click Emulation Enabled",
change_property (device, "libinput Middle Emulation Enabled",
XA_INTEGER, 8, &value, 1);
}