[gtk+/gdk-backend] Drop a no-longer working hack
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend] Drop a no-longer working hack
- Date: Thu, 16 Dec 2010 16:37:10 +0000 (UTC)
commit ebb975b417518680778111ceb9b9626979f23f55
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 16 11:33:43 2010 -0500
Drop a no-longer working hack
There was some code that was poking at non-public api in the X11
backend to reinterpret key events. This needs to be replaced
with some sane api in the X11 backend to do the same.
gdk/x11/gdkim-x11.c | 103 ---------------------------------------------------
gtk/gtkplug-x11.c | 9 +++-
2 files changed, 6 insertions(+), 106 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]