summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkinput-win32.c
diff options
context:
space:
mode:
authorRobert Ögren <gtk@roboros.com>2004-08-31 19:13:24 +0000
committerTor Lillqvist <tml@src.gnome.org>2004-08-31 19:13:24 +0000
commitc0ba86bc81753b1061a4d4f29c6f9ceb2f3c51db (patch)
tree6250ccb3199b49a77e8dac9b1f9e035dafe4b569 /gdk/win32/gdkinput-win32.c
parent542a2d42c77a5608f7d7facfdfc6e33b3009de93 (diff)
downloadgdk-pixbuf-c0ba86bc81753b1061a4d4f29c6f9ceb2f3c51db.tar.gz
On Win32, do not produce tablet motion or button events while a window is
2004-08-28 Robert Ögren <gtk@roboros.com> On Win32, do not produce tablet motion or button events while a window is being moved or resized. (#151090, reported by Shaneyfelt) * gdk/win32/gdkprivate-win32.h * gdk/win32/gdkglobals-win32.c * gdk/win32/gdkevents-win32.c: Rename the variable resizing to _sizemove_in_progress and make it extern. * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Ignore motion and button events if _sizemove_in_progress is true.
Diffstat (limited to 'gdk/win32/gdkinput-win32.c')
-rw-r--r--gdk/win32/gdkinput-win32.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdk/win32/gdkinput-win32.c b/gdk/win32/gdkinput-win32.c
index c5534d8df..33997535e 100644
--- a/gdk/win32/gdkinput-win32.c
+++ b/gdk/win32/gdkinput-win32.c
@@ -695,7 +695,7 @@ _gdk_input_enter_event (GdkWindow *window)
input_window->root_y = root_y;
}
-/**
+/*
* Get the currently active keyboard modifiers (ignoring the mouse buttons)
* We could use gdk_window_get_pointer but that function does a lot of other
* expensive things besides getting the modifiers. This code is somewhat based
@@ -781,6 +781,13 @@ _gdk_input_other_event (GdkEvent *event,
switch (msg->message)
{
case WT_PACKET:
+ /* Don't produce any button or motion events while a window is being
+ * moved or resized, see bug #151090. */
+ if (_sizemove_in_progress)
+ {
+ GDK_NOTE (EVENTS_OR_INPUT, g_print ("...ignored when moving/sizing\n"));
+ return FALSE;
+ }
if (window == _gdk_parent_root && x_grab_window == NULL)
{
GDK_NOTE (EVENTS_OR_INPUT, g_print ("...is root\n"));