[gtk/wip.win32.fixes: 5/5] gdkcursor-win32.c: Add cursor map for all-scroll




commit b7efeffb9091f539bf64addf90deaa8cf1c7a472
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.  Just mimic what we have on GTK3 and 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]