plug: Comment hack for xinput that used private x11 backend API

This commit is contained in:
Benjamin Otte 2010-12-18 00:41:13 +01:00 committed by Matthias Clasen
parent 624dc45755
commit 33417c36f1

View File

@ -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);