diff options
| author | Simon Ser <contact@emersion.fr> | 2024-02-28 10:31:03 +0100 | 
|---|---|---|
| committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2024-02-28 16:39:18 +0000 | 
| commit | ec5263e6b7b069da6d32fe302771f006f6b5ac22 (patch) | |
| tree | 8dc309d9f73a5f36623850701e7b51736eb8f655 /backend | |
| parent | 812451cd8fd858cb2aa0630532266f229d934bf2 (diff) | |
| download | wlroots-ec5263e6b7b069da6d32fe302771f006f6b5ac22.tar.xz | |
pointer: drop enum wlr_axis_relative_direction
Instead, use enum wl_pointer_axis_relative_direction from the
Wayland protocol.
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/libinput/pointer.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c index 57a2f4a3..36ade694 100644 --- a/backend/libinput/pointer.c +++ b/backend/libinput/pointer.c @@ -129,9 +129,9 @@ void handle_pointer_axis(struct libinput_event *event,  		wlr_event.delta_discrete =  			libinput_event_pointer_get_axis_value_discrete(pevent, axes[i]);  		wlr_event.delta_discrete *= WLR_POINTER_AXIS_DISCRETE_STEP; -		wlr_event.relative_direction = WLR_AXIS_RELATIVE_DIRECTION_IDENTICAL; +		wlr_event.relative_direction = WL_POINTER_AXIS_RELATIVE_DIRECTION_IDENTICAL;  		if (libinput_device_config_scroll_get_natural_scroll_enabled(libinput_event_get_device(event))) { -			wlr_event.relative_direction = WLR_AXIS_RELATIVE_DIRECTION_INVERTED; +			wlr_event.relative_direction = WL_POINTER_AXIS_RELATIVE_DIRECTION_INVERTED;  		}  		wl_signal_emit_mutable(&pointer->events.axis, &wlr_event);  	} | 
