[at-spi2-core/wip/meson: 7/15] Remove xevie support
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core/wip/meson: 7/15] Remove xevie support
- Date: Wed, 24 May 2017 13:19:21 +0000 (UTC)
commit 644096a28a47bdf5c6e0c34c9cd5b944df059925
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed May 24 11:56:56 2017 +0100
Remove xevie support
The Xevie extension was removed from X.org in 2008:
https://freedesktop.org/wiki/Software/XEvIE/
* XEvIE has been removed from HEAD on Wed Oct 22:
http://cgit.freedesktop.org/xorg/xserver/commit/?id=f4036f6ace5f770f0fe6a6e3dc3749051a81325a
> It's unmaintained and has been broken for quite a while; MPX finally
> smashed it completely.
configure.ac | 30 ------------
registryd/deviceeventcontroller-x11.c | 80 ++-------------------------------
2 files changed, 4 insertions(+), 106 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 463191f..007cc2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,40 +126,10 @@ else
LIBS="$LIBS $save_LIBS"
fi
-save_LIBS="$LIBS"
-LIBS=""
-AC_ARG_ENABLE(xevie,
- [AS_HELP_STRING([--enable-xevie],
- [Build with XEViE support [default=no]])],
- enable_xevie="$enableval", enable_xevie=no)
-
if test -z "$backend_set"; then
enable_x11_backend=yes
fi
-if test x$enable_xevie = xyes ; then
- have_xevie=
- AC_CHECK_LIB(Xext, XevieStart, have_xevie="yes", have_xevie="no", $X_LIBS)
-
- if test "x$have_xevie" = "xyes"; then
- XEVIE_LIBS="-lXext"
- AC_DEFINE([HAVE_XEVIE], [], [Xevie is present])
- else
- AC_CHECK_LIB(Xevie, XevieQueryVersion, have_xevie="maybe",,$X_LIBS)
- if test "x$have_xevie" = "xmaybe"; then
- AC_CHECK_HEADER(X11/extensions/Xevie.h, have_xevie=yes, [],
- [[#include <X11/Xlib.h>
-]])
- if test "x$have_xevie" = "xyes"; then
- XEVIE_LIBS="-lXext -lXevie"
- AC_DEFINE([HAVE_XEVIE], [], [Xevie is present])
- fi
- fi
- fi
- AC_SUBST(XEVIE_LIBS)
-fi
-LIBS="$LIBS $save_LIBS"
-
AC_ARG_WITH([dbus_daemondir],
[AS_HELP_STRING([--with-dbus-daemondir=<directory>],
[Directory where the DBUS daemon is installed])],
diff --git a/registryd/deviceeventcontroller-x11.c b/registryd/deviceeventcontroller-x11.c
index f8df6d8..d9d9a6c 100644
--- a/registryd/deviceeventcontroller-x11.c
+++ b/registryd/deviceeventcontroller-x11.c
@@ -43,12 +43,6 @@
#define XK_LATIN1
#include <X11/keysymdef.h>
-#ifdef HAVE_XEVIE
-#include <X11/Xproto.h>
-#include <X11/X.h>
-#include <X11/extensions/Xevie.h>
-#endif /* HAVE_XEVIE */
-
#include <glib.h>
#include <dbus/dbus.h>
@@ -1224,69 +1218,12 @@ spi_dec_x11_synth_keystring (SpiDEController *controller, guint synth_type, gint
return retval;
}
-#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 */
-
static void
spi_dec_x11_init (SpiDEController *controller)
{
DEControllerPrivateData *priv = controller->priv;
- spi_events_init (spi_get_display());
-#ifdef HAVE_XEVIE
- GIOChannel *ioc;
- int fd;
-#endif /* HAVE_XEVIE */
spi_events_init (spi_get_display ());
-#ifdef HAVE_XEVIE
- priv->xevie_display = XOpenDisplay(NULL);
-
- if (XevieStart(priv->xevie_display) == TRUE)
- {
-#ifdef SPI_KEYEVENT_DEBUG
- fprintf (stderr, "XevieStart() success \n");
-#endif
- XevieSelectInput(priv->xevie_display, KeyPressMask | KeyReleaseMask);
-
- fd = ConnectionNumber(priv->xevie_display);
- ioc = g_io_channel_unix_new (fd);
- g_io_add_watch (ioc, G_IO_IN | G_IO_HUP, handle_io, controller);
- g_io_channel_unref (ioc);
- }
- else
- {
-#ifdef SPI_KEYEVENT_DEBUG
- fprintf (stderr, "XevieStart() failed, only one client is allowed to do event int exception\n");
-#endif
- }
-#endif /* HAVE_XEVIE */
gettimeofday (&priv->last_press_time, NULL);
gettimeofday (&priv->last_release_time, NULL);
@@ -1300,22 +1237,13 @@ spi_dec_x11_init (SpiDEController *controller)
static void
spi_dec_x11_finalize (SpiDEController *controller)
{
- DEControllerPrivateData *priv = controller->priv;
+ DEControllerPrivateData *priv = controller->priv;
+
/* disconnect any special listeners, get rid of outstanding keygrabs */
XUngrabKey (spi_get_display (), AnyKey, AnyModifier, DefaultRootWindow (spi_get_display ()));
-#ifdef HAVE_XEVIE
- if (priv->xevie_display != NULL)
- {
- XevieEnd(priv->xevie_display);
-#ifdef SPI_KEYEVENT_DEBUG
- printf("XevieEnd(dpy) finished \n");
-#endif
- }
-#endif
-
if (priv->xkb_desc)
- XkbFreeKeyboard (priv->xkb_desc, 0, True);
+ XkbFreeKeyboard (priv->xkb_desc, 0, True);
/* TODO: Should free the keymap */
}
@@ -1323,7 +1251,7 @@ static gboolean
spi_device_event_controller_forward_key_event (SpiDEController *controller,
const XEvent *event)
{
- DEControllerPrivateData *priv = controller->priv;
+ DEControllerPrivateData *priv = controller->priv;
Accessibility_DeviceEvent key_event;
gboolean ret;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]