[gtk+/gdk-backend: 57/91] plug: Comment hack for xinput that used private x11 backend API
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend: 57/91] plug: Comment hack for xinput that used private x11 backend API
- Date: Sat, 18 Dec 2010 01:10:36 +0000 (UTC)
commit f2706372ad9900da3374e68a4070dcbcac5015f2
Author: Benjamin Otte <otte redhat com>
Date: Sat Dec 18 00:41:13 2010 +0100
plug: Comment hack for xinput that used private x11 backend API
gtk/gtkplug-x11.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkplug-x11.c b/gtk/gtkplug-x11.c
index 3f4e678..e187725 100644
--- a/gtk/gtkplug-x11.c
+++ b/gtk/gtkplug-x11.c
@@ -351,7 +351,10 @@ _gtk_plug_windowing_filter_func (GdkXEvent *gdk_xevent,
break;
}
-#ifdef XINPUT_2
+#if 0
+ /* FIXME: this needs some X11 backend api to do things
+ * in a saner way
+ */
case KeyPress:
case KeyRelease:
{
@@ -393,8 +396,8 @@ _gtk_plug_windowing_filter_func (GdkXEvent *gdk_xevent,
*/
if (G_UNLIKELY (!core_device_manager))
core_device_manager = g_object_new (GDK_TYPE_DEVICE_MANAGER_CORE,
- "display", display,
- NULL);
+ "display", display,
+ NULL);
translated_event = gdk_event_translator_translate (GDK_EVENT_TRANSLATOR (core_device_manager), display, xevent);
gdk_event_set_device (translated_event, keyboard);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]