[gtk+] plug: Comment hack for xinput that used private x11 backend API
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] plug: Comment hack for xinput that used private x11 backend API
- Date: Tue, 21 Dec 2010 17:12:57 +0000 (UTC)
commit 33417c36f1fd213fd3f8da902e012f934c7659ae
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 46b2b7c..43072fe 100644
--- a/gtk/gtkplug-x11.c
+++ b/gtk/gtkplug-x11.c
@@ -352,7 +352,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:
{
@@ -394,8 +397,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]