mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 18:15:10 +00:00
Wayland: Fix non-standard struct initialization
(cherry picked from commit d77aaa770f
)
This commit is contained in:
parent
fe2ac5027b
commit
ccbbada181
@ -786,7 +786,7 @@ static GLFWbool createNativeSurface(_GLFWwindow* window,
|
|||||||
static void setCursorImage(_GLFWwindow* window,
|
static void setCursorImage(_GLFWwindow* window,
|
||||||
_GLFWcursorWayland* cursorWayland)
|
_GLFWcursorWayland* cursorWayland)
|
||||||
{
|
{
|
||||||
struct itimerspec timer = {};
|
struct itimerspec timer = {0};
|
||||||
struct wl_cursor* wlCursor = cursorWayland->cursor;
|
struct wl_cursor* wlCursor = cursorWayland->cursor;
|
||||||
struct wl_cursor_image* image;
|
struct wl_cursor_image* image;
|
||||||
struct wl_buffer* buffer;
|
struct wl_buffer* buffer;
|
||||||
@ -1442,7 +1442,7 @@ static void keyboardHandleLeave(void* userData,
|
|||||||
if (!window)
|
if (!window)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
struct itimerspec timer = {};
|
struct itimerspec timer = {0};
|
||||||
timerfd_settime(_glfw.wl.timerfd, 0, &timer, NULL);
|
timerfd_settime(_glfw.wl.timerfd, 0, &timer, NULL);
|
||||||
|
|
||||||
_glfw.wl.serial = serial;
|
_glfw.wl.serial = serial;
|
||||||
@ -1516,7 +1516,7 @@ static void keyboardHandleKey(void* userData,
|
|||||||
_glfw.wl.serial = serial;
|
_glfw.wl.serial = serial;
|
||||||
_glfwInputKey(window, key, scancode, action, _glfw.wl.xkb.modifiers);
|
_glfwInputKey(window, key, scancode, action, _glfw.wl.xkb.modifiers);
|
||||||
|
|
||||||
struct itimerspec timer = {};
|
struct itimerspec timer = {0};
|
||||||
|
|
||||||
if (action == GLFW_PRESS)
|
if (action == GLFW_PRESS)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user