瀏覽代碼

Corrected cursor issue for Wayland

pull/479/merge
Ray 7 年之前
父節點
當前提交
cd5e2e0f17
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/core.c

+ 2
- 2
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};

Loading…
取消
儲存