From cd5e2e0f17f87fc7c5794327bba1b384758f4937 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 22 Feb 2018 00:01:13 +0100 Subject: [PATCH] Corrected cursor issue for Wayland --- src/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index e2fabcf6d..137c0b61f 100644 --- a/src/core.c +++ b/src/core.c @@ -752,7 +752,7 @@ int GetScreenHeight(void) void ShowCursor() { #if defined(PLATFORM_DESKTOP) - #if defined(__linux__) + #if defined(__linux__) && defined(_GLFW_X11) XUndefineCursor(glfwGetX11Display(), glfwGetX11Window(window)); #else glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); @@ -765,7 +765,7 @@ void ShowCursor() void HideCursor() { #if defined(PLATFORM_DESKTOP) - #if defined(__linux__) + #if defined(__linux__) && defined(_GLFW_X11) XColor col; const char nil[] = {0};