From 74305597366d92a54692542078f653262041ebab Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 6 Mar 2012 12:03:13 +0100 Subject: win32: Remove some unused input stuff to make win32 build again Input events doesn't quite seem to work though, so it needs some fixing. --- gdk/win32/gdkdevice-wintab.c | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) (limited to 'gdk/win32/gdkdevice-wintab.c') diff --git a/gdk/win32/gdkdevice-wintab.c b/gdk/win32/gdkdevice-wintab.c index 0c01307a93..122787d3dc 100644 --- a/gdk/win32/gdkdevice-wintab.c +++ b/gdk/win32/gdkdevice-wintab.c @@ -250,6 +250,17 @@ gdk_device_wintab_select_window_events (GdkDevice *device, } } +gboolean +_gdk_device_wintab_wants_events (GdkWindow *window) +{ + GdkWindowInputInfo *info; + + info = g_object_get_qdata (G_OBJECT (window), + quark_window_input_info); + + return info != NULL; +} + GdkEventMask _gdk_device_wintab_get_events (GdkDeviceWintab *device, GdkWindow *window) @@ -359,26 +370,3 @@ _gdk_device_wintab_translate_axes (GdkDeviceWintab *device_wintab, if (y) *y = temp_y; } - -void -_gdk_input_check_extension_events (GdkDevice *device) -{ - GSList *l; - - if (!GDK_IS_DEVICE_WINTAB (device)) - return; - - for (l = input_windows; l; l = l->next) - { - GdkWindow *window_private; - GdkEventMask event_mask = 0; - - window_private = l->data; - - if (gdk_device_get_mode (device) != GDK_MODE_DISABLED) - event_mask = window_private->extension_events; - - gdk_window_set_device_events (GDK_WINDOW (window_private), - device, event_mask); - } -} -- cgit v1.2.1