Wayland: Fix non-standard struct initialization

master
Camilla Löwy ago%!(EXTRA string=3 years)
parent aa80d24d01
commit d77aaa770f
  1. 6
      src/wl_window.c

@ -743,7 +743,7 @@ static GLFWbool createNativeSurface(_GLFWwindow* window,
static void setCursorImage(_GLFWwindow* window,
_GLFWcursorWayland* cursorWayland)
{
struct itimerspec timer = {};
struct itimerspec timer = {0};
struct wl_cursor* wlCursor = cursorWayland->cursor;
struct wl_cursor_image* image;
struct wl_buffer* buffer;
@ -1397,7 +1397,7 @@ static void keyboardHandleLeave(void* userData,
if (!window)
return;
struct itimerspec timer = {};
struct itimerspec timer = {0};
timerfd_settime(_glfw.wl.timerfd, 0, &timer, NULL);
_glfw.wl.serial = serial;
@ -1471,7 +1471,7 @@ static void keyboardHandleKey(void* userData,
_glfw.wl.serial = serial;
_glfwInputKey(window, key, scancode, action, _glfw.wl.xkb.modifiers);
struct itimerspec timer = {};
struct itimerspec timer = {0};
if (action == GLFW_PRESS)
{

Loading…
Cancel
Save