summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-03-15 17:04:21 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-03-17 11:40:38 +0800
commit4a73f2f1be6287ea88689c2781cb86d2be8d74f0 (patch)
tree5c7e53ba92c7f3fd34e81a215cfa35046a7990a3
parent744899244147c1b454a7461ab8ba10298a24d97d (diff)
downloadgtk+-fix-3581-4.0.tar.gz
GDK-Win32: Remove extraneous call to _gdk_win32_append_event()fix-3581-4.0
Apparently, by comparing with the other backends, we should not call _gdk_win32_append_event() after calling gdk_scroll_event_new() but we should call it after calling gdk_scroll_event_new_discrete(), which was why we didn't restore the cursor after we scroll using the mouse wheel and didn't manage to remove the shade that appears after we scrolled to the very top or very bottom. Also use IDC_SIZEALL for the system cursor that we fall back to if no cursor theme is installed, as with other Windows programs, suggested by the reporter of issue #3581. Fixes issue #3581.
-rw-r--r--gdk/win32/gdkcursor-win32.c1
-rw-r--r--gdk/win32/gdkevents-win32.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/gdk/win32/gdkcursor-win32.c b/gdk/win32/gdkcursor-win32.c
index 6b0723bd86..61cf9d83a1 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_SIZEALL },
{ "ew-resize", IDC_SIZEWE },
{ "e-resize", IDC_SIZEWE },
{ "w-resize", IDC_SIZEWE },
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 9c47263f07..5a17522ae1 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -2485,8 +2485,6 @@ gdk_event_translate (MSG *msg,
delta_y,
FALSE);
- _gdk_win32_append_event (event);
-
/* Append the discrete version too */
direction = 0;
if (msg->message == WM_MOUSEWHEEL)