Skip to content

Commit 340d4d8

Browse files
committed
Merge branch 'develop' into no-crashpad
2 parents 8e90d25 + 9734d07 commit 340d4d8

File tree

2 files changed

+7
-30
lines changed

2 files changed

+7
-30
lines changed

src/arch/InputHandler/InputHandler_Wayland.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -408,27 +408,6 @@ wl_pointer_axis_discrete(void* data,
408408
// ignored event
409409
}
410410

411-
static void
412-
wl_pointer_axis_value120(void* data,
413-
struct wl_pointer* pointer,
414-
uint32_t axis,
415-
int32_t value)
416-
{
417-
// TODO: this should probably also send mouse wheel events
418-
// this is the event for "high precision" scrolling but I don't if wayland
419-
// also fires normal scroll events when a high precision device is used so
420-
// not sure if this needs to be handled seperately.
421-
}
422-
423-
static void
424-
wl_pointer_axis_relative_direction(void* data,
425-
struct wl_pointer* pointer,
426-
uint32_t axis,
427-
uint32_t direction)
428-
{
429-
// ignored event
430-
}
431-
432411
static const struct wl_pointer_listener wl_pointer_listener = {
433412
.enter = wl_pointer_enter,
434413
.leave = wl_pointer_leave,
@@ -439,8 +418,6 @@ static const struct wl_pointer_listener wl_pointer_listener = {
439418
.axis_source = wl_pointer_axis_source,
440419
.axis_stop = wl_pointer_axis_stop,
441420
.axis_discrete = wl_pointer_axis_discrete,
442-
.axis_value120 = wl_pointer_axis_value120,
443-
.axis_relative_direction = wl_pointer_axis_relative_direction,
444421
};
445422

446423
InputHandler_Wayland::InputHandler_Wayland()

src/archutils/Unix/WaylandHelper.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,23 +173,23 @@ global_registry_handler(void* data,
173173
if (strcmp(interface, wl_compositor_interface.name) == 0) {
174174
// The compositor object is used to create surfaces
175175
WaylandHelper::compositor = (wl_compositor*)wl_registry_bind(
176-
registry, name, &wl_compositor_interface, version);
176+
registry, name, &wl_compositor_interface, 5);
177177
} else if (strcmp(interface, xdg_wm_base_interface.name) == 0) {
178178
// The xdg_wm_base gives access to the xdg shell, which is used to tell
179179
// the shell details about the window
180180
WaylandHelper::wm_base = (xdg_wm_base*)wl_registry_bind(
181-
registry, name, &xdg_wm_base_interface, version);
181+
registry, name, &xdg_wm_base_interface, 6);
182182
} else if (strcmp(interface, wl_seat_interface.name) == 0) {
183183
// The seat interface handles input devices
184-
WaylandHelper::seat = (wl_seat*)wl_registry_bind(
185-
registry, name, &wl_seat_interface, version);
184+
WaylandHelper::seat =
185+
(wl_seat*)wl_registry_bind(registry, name, &wl_seat_interface, 7);
186186

187187
// We will also listen for the seat events
188188
wl_seat_add_listener(WaylandHelper::seat, &wl_seat_listener, nullptr);
189189
} else if (strcmp(interface, wl_output_interface.name) == 0) {
190190
// Outputs are used to get the display information
191-
wl_output* output = (wl_output*)wl_registry_bind(
192-
registry, name, &wl_output_interface, version);
191+
wl_output* output =
192+
(wl_output*)wl_registry_bind(registry, name, &wl_output_interface, 4);
193193

194194
// Create a new output info object to store the information
195195
WaylandHelper::OutputInfo* info = new WaylandHelper::OutputInfo();
@@ -200,7 +200,7 @@ global_registry_handler(void* data,
200200
// The shared memory object is used to create a buffer for the mouse
201201
// cursor
202202
WaylandHelper::shm =
203-
(wl_shm*)wl_registry_bind(registry, name, &wl_shm_interface, version);
203+
(wl_shm*)wl_registry_bind(registry, name, &wl_shm_interface, 1);
204204
}
205205
}
206206

0 commit comments

Comments
 (0)