summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2018-02-22 00:01:13 +0100
committerRay <[email protected]>2018-02-22 00:01:13 +0100
commitcd5e2e0f17f87fc7c5794327bba1b384758f4937 (patch)
treeeaed0c22ffe4b8c2341387681c2c9662182f93ae
parent326fe09777b4b72358bad3e5ae272084bd1732a5 (diff)
downloadraylib-cd5e2e0f17f87fc7c5794327bba1b384758f4937.tar.gz
raylib-cd5e2e0f17f87fc7c5794327bba1b384758f4937.zip
Corrected cursor issue for Wayland
-rw-r--r--src/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.c b/src/core.c
index e2fabcf6..137c0b61 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};