Fix build for Wayland

This commit is contained in:
Milan Nikolic 2017-11-28 13:41:25 +01:00
parent 486ed67f5b
commit 4eb7bface3
2 changed files with 2 additions and 95 deletions

View file

@ -716,7 +716,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);
@ -729,7 +729,7 @@ void ShowCursor()
void HideCursor()
{
#if defined(PLATFORM_DESKTOP)
#if defined(__linux__)
#if defined(__linux__) && defined(_GLFW_X11)
XColor col;
const char nil[] = {0};