summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2023-11-10 08:16:59 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2023-11-10 08:16:59 +1000
commit0dc42f0e4ec8b006d589c0351cee0fc53cf02375 (patch)
treed85bb3c2fd08aebbb93ebd4dd22ce9b6a75cd686
parent46af622e9da610c775fab77b72f4c5e8fdb522de (diff)
Sort the read-only properties
-rw-r--r--src/xf86libinput.c37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index 934a312..48169e2 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -5253,32 +5253,33 @@ LibinputSetProperty(DeviceIntPtr dev, Atom atom, XIPropertyValuePtr val,
rc = LibinputSetPropertyAreaRatio(dev, atom, val, checkonly);
else if (atom == prop_hires_scroll)
rc = LibinputSetPropertyHighResolutionScroll(dev, atom, val, checkonly);
- else if (atom == prop_device || atom == prop_product_id ||
- atom == prop_tap_default ||
- atom == prop_tap_drag_default ||
- atom == prop_tap_drag_lock_default ||
- atom == prop_tap_buttonmap_default ||
- atom == prop_calibration_default ||
- atom == prop_accel_default ||
+ else if (atom == prop_accel_default ||
atom == prop_accel_profile_default ||
- atom == prop_natural_scroll_default ||
- atom == prop_sendevents_default ||
- atom == prop_sendevents_available ||
- atom == prop_left_handed_default ||
- atom == prop_scroll_method_default ||
- atom == prop_scroll_methods_available ||
- atom == prop_scroll_button_default ||
- atom == prop_scroll_buttonlock_default ||
- atom == prop_scroll_pixel_distance_default ||
+ atom == prop_calibration_default ||
atom == prop_click_method_default ||
atom == prop_click_methods_available ||
- atom == prop_middle_emulation_default ||
atom == prop_disable_while_typing_default ||
+ atom == prop_left_handed_default ||
+ atom == prop_middle_emulation_default ||
atom == prop_mode_groups_available ||
atom == prop_mode_groups_buttons ||
atom == prop_mode_groups_rings ||
atom == prop_mode_groups_strips ||
- atom == prop_rotation_angle_default)
+ atom == prop_natural_scroll_default ||
+ atom == prop_product_id ||
+ atom == prop_rotation_angle_default ||
+ atom == prop_scroll_button_default ||
+ atom == prop_scroll_buttonlock_default ||
+ atom == prop_scroll_method_default ||
+ atom == prop_scroll_methods_available ||
+ atom == prop_scroll_pixel_distance_default ||
+ atom == prop_sendevents_available ||
+ atom == prop_sendevents_default ||
+ atom == prop_tap_buttonmap_default ||
+ atom == prop_tap_default ||
+ atom == prop_tap_drag_default ||
+ atom == prop_tap_drag_lock_default ||
+ atom == prop_device)
return BadAccess; /* read-only */
else
return Success;