[gtk+] Only use gdk_input_select_events() if XINPUT_NONE is defined
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Only use gdk_input_select_events() if XINPUT_NONE is defined
- Date: Wed, 11 Nov 2009 16:42:53 +0000 (UTC)
commit ecc3065f760616ecdd5a64bfebc98bf2885d5e10
Author: Javier Jardón <jjardon gnome org>
Date: Tue Nov 10 21:02:45 2009 +0100
Only use gdk_input_select_events() if XINPUT_NONE is defined
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=601337
gdk/x11/gdkinput.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkinput.c b/gdk/x11/gdkinput.c
index 4cd2406..95485d7 100644
--- a/gdk/x11/gdkinput.c
+++ b/gdk/x11/gdkinput.c
@@ -399,10 +399,12 @@ gdk_input_set_extension_events (GdkWindow *window, gint mask,
GdkExtensionMode mode)
{
GdkWindowObject *window_private;
- GList *tmp_list;
GdkWindowObject *impl_window;
GdkInputWindow *iw;
GdkDisplayX11 *display_x11;
+#ifndef XINPUT_NONE
+ GList *tmp_list;
+#endif
g_return_if_fail (window != NULL);
g_return_if_fail (GDK_WINDOW_IS_X11 (window));
@@ -452,6 +454,7 @@ gdk_input_set_extension_events (GdkWindow *window, gint mask,
unset_extension_events (window);
}
+#ifndef XINPUT_NONE
for (tmp_list = display_x11->input_devices; tmp_list; tmp_list = tmp_list->next)
{
GdkDevicePrivate *gdkdev = tmp_list->data;
@@ -459,6 +462,7 @@ gdk_input_set_extension_events (GdkWindow *window, gint mask,
if (!GDK_IS_CORE (gdkdev))
_gdk_input_select_events ((GdkWindow *)impl_window, gdkdev);
}
+#endif /* !XINPUT_NONE */
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]