Skip to content

Commit

Permalink
fix: use new wayland enums
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgit committed Mar 5, 2024
1 parent dd7263b commit 7384708
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions como/input/backend/wlroots/pointer.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void handle_button(struct wl_listener* listener, void* data)

auto event = button_event{
wlr_event->button,
wlr_event->state == WLR_BUTTON_RELEASED ? button_state::released : button_state::pressed,
wlr_event->state == WL_POINTER_BUTTON_STATE_RELEASED ? button_state::released : button_state::pressed,
{
pointer,
wlr_event->time_msec,
Expand All @@ -104,13 +104,13 @@ void handle_axis(struct wl_listener* listener, void* data)

auto get_source = [](auto wlr_source) {
switch (wlr_source) {
case WLR_AXIS_SOURCE_WHEEL:
case WL_POINTER_AXIS_SOURCE_WHEEL:
return axis_source::wheel;
case WLR_AXIS_SOURCE_FINGER:
case WL_POINTER_AXIS_SOURCE_FINGER:
return axis_source::finger;
case WLR_AXIS_SOURCE_CONTINUOUS:
case WL_POINTER_AXIS_SOURCE_CONTINUOUS:
return axis_source::continuous;
case WLR_AXIS_SOURCE_WHEEL_TILT:
case WL_POINTER_AXIS_SOURCE_WHEEL_TILT:
return axis_source::wheel_tilt;
default:
return axis_source::unknown;
Expand Down

0 comments on commit 7384708

Please sign in to comment.