|
@@ -137,6 +137,13 @@ static void registryHandleGlobal(void* userData,
|
|
|
wl_registry_bind(registry, name, &wl_seat_interface,
|
|
|
_glfw_min(4, version));
|
|
|
_glfwAddSeatListenerWayland(_glfw.wl.seat);
|
|
|
+
|
|
|
+ if (wl_seat_get_version(_glfw.wl.seat) >=
|
|
|
+ WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION)
|
|
|
+ {
|
|
|
+ _glfw.wl.keyRepeatTimerfd =
|
|
|
+ timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
else if (strcmp(interface, "wl_data_device_manager") == 0)
|
|
@@ -853,12 +860,6 @@ int _glfwInitWayland(void)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (wl_seat_get_version(_glfw.wl.seat) >= WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION)
|
|
|
- {
|
|
|
- _glfw.wl.keyRepeatTimerfd =
|
|
|
- timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK);
|
|
|
- }
|
|
|
-
|
|
|
if (!_glfw.wl.wmBase)
|
|
|
{
|
|
|
_glfwInputError(GLFW_PLATFORM_ERROR,
|