[gtk/fix-3581] gdkcursor-win32.c: Add cursor map for all-scroll




commit 54b30485844206ae6e72d39347b10606042b76a4
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Mar 15 17:04:21 2021 +0800

    gdkcursor-win32.c: Add cursor map for all-scroll
    
    This makes sure that we don't have cursors disappearing on Windows upon
    scrolling because we can't find a cursor that exists on the system during
    a scroll, and unlike GTK-3.x, we do not default to the arrow pointer on GTK4.
    
    Just mimic what we have on X11 and Wayland: the trusty standard arrow pointer.
    
    Fixes issue #3581.

 gdk/win32/gdkcursor-win32.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gdk/win32/gdkcursor-win32.c b/gdk/win32/gdkcursor-win32.c
index 6b0723bd86..fe9f299c71 100644
--- a/gdk/win32/gdkcursor-win32.c
+++ b/gdk/win32/gdkcursor-win32.c
@@ -61,6 +61,7 @@ static DefaultCursor default_cursors[] = {
   { "text", IDC_IBEAM },
   { "move", IDC_SIZEALL },
   { "not-allowed", IDC_NO },
+  { "all-scroll", IDC_ARROW },
   { "ew-resize", IDC_SIZEWE },
   { "e-resize", IDC_SIZEWE },
   { "w-resize", IDC_SIZEWE },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]