summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkevents-win32.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-03-17 11:09:37 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-03-17 11:22:23 +0800
commit38ad068d9b312f4162cd0285dee29c899a968bbd (patch)
tree8a54179bd4fdd531bb3ab55e6c2414d339e56804 /gdk/win32/gdkevents-win32.c
parent45c8c6c77fd6741b0c5291079102452d15da29f1 (diff)
downloadgtk+-38ad068d9b312f4162cd0285dee29c899a968bbd.tar.gz
GDK-Win32: Remove extraneous call to _gdk_win32_append_event()really-fix-3581
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, as suggested by the reporter, use IDC_SIZEALL for the system cursor that we fall back to if no cursor theme is installed, as with other Windows programs. This should really fix issue #3581.
Diffstat (limited to 'gdk/win32/gdkevents-win32.c')
-rw-r--r--gdk/win32/gdkevents-win32.c2
1 files changed, 0 insertions, 2 deletions
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)