2
0
Эх сурвалжийг харах

Wayland: Fix pointing hand cursor shape

Related to #1432.

(cherry picked from commit 80fde12fdade85a39c5c1300d0a29200691fdc23)
Camilla Löwy 6 жил өмнө
parent
commit
df4bda44fc
2 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 1 0
      README.md
  2. 1 1
      src/wl_window.c

+ 1 - 0
README.md

@@ -136,6 +136,7 @@ information on what to include when reporting a bug.
    (#1462,#1528)
    (#1462,#1528)
  - [X11] Bugfix: Decorations could not be enabled after window creation (#1566)
  - [X11] Bugfix: Decorations could not be enabled after window creation (#1566)
  - [X11] Bugfix: Content scale fallback value could be inconsistent (#1578)
  - [X11] Bugfix: Content scale fallback value could be inconsistent (#1578)
+ - [Wayland] Bugfix: The `GLFW_HAND_CURSOR` shape used the wrong image (#1432)
 
 
 
 
 ## Contact
 ## Contact

+ 1 - 1
src/wl_window.c

@@ -904,7 +904,7 @@ static char *translateCursorShape(int shape)
         case GLFW_CROSSHAIR_CURSOR:
         case GLFW_CROSSHAIR_CURSOR:
             return "crosshair";
             return "crosshair";
         case GLFW_HAND_CURSOR:
         case GLFW_HAND_CURSOR:
-            return "grabbing";
+            return "hand2";
         case GLFW_HRESIZE_CURSOR:
         case GLFW_HRESIZE_CURSOR:
             return "sb_h_double_arrow";
             return "sb_h_double_arrow";
         case GLFW_VRESIZE_CURSOR:
         case GLFW_VRESIZE_CURSOR: