-#ifdef HAVE_XEVIE
-static Bool
-isEvent(Display *dpy, XEvent *event, char *arg)
-{
- return TRUE;
-}
-
-static gboolean
-handle_io (GIOChannel *source,
- GIOCondition condition,
- gpointer data)
-{
- SpiDEController *controller = (SpiDEController *) data;
- DEControllerPrivateData *priv = controller->priv;
- gboolean is_consumed = FALSE;
- XEvent ev;
-
- while (XCheckIfEvent(priv->xevie_display, &ev, isEvent, NULL))
- {
- if (ev.type == KeyPress || ev.type == KeyRelease)
- is_consumed = spi_device_event_controller_forward_key_event (controller, &ev);
-
- if (! is_consumed)
- XevieSendEvent(priv->xevie_display, &ev, XEVIE_UNMODIFIED);
- }
-
- return TRUE;
-}
-#endif /* HAVE_XEVIE */
-