Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needed to provide func for all members on requested version #16

Merged
merged 1 commit into from
Oct 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions zen/Seat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ static void on_axis(void* data, struct wl_pointer*, uint32_t /*time*/, uint32_t
((Pointer*)data)->Wheel(value);
}
}
static void on_pointer_frame(void* /*data*/, struct wl_pointer*) {}
static void on_axis_source(void* /*data*/, struct wl_pointer*, uint32_t /*axis_source*/) {}
static void on_axis_stop(void* /*data*/, struct wl_pointer*, uint32_t /*time*/, uint32_t /*axis*/) {
}
static void on_axis_discrete(void* /*data*/, struct wl_pointer*, uint32_t /*axis*/,
int32_t /*discrete*/) {}

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
Expand All @@ -51,6 +57,10 @@ static const wl_pointer_listener pointer_listener = {
.motion = on_pointer_motion,
.button = on_pointer_button,
.axis = on_axis,
.frame = on_pointer_frame,
.axis_source = on_axis_source,
.axis_stop = on_axis_stop,
.axis_discrete = on_axis_discrete,
};
#pragma GCC diagnostic pop

Expand Down