diff --git a/como/input/backend/wlroots/pointer.h b/como/input/backend/wlroots/pointer.h index 36641a64a..6bfad6dac 100644 --- a/como/input/backend/wlroots/pointer.h +++ b/como/input/backend/wlroots/pointer.h @@ -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, @@ -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;