diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-23 16:11:48 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-25 11:04:14 -0500 |
commit | 4c40accbb989a427b8f6127b52e90ddd8d081129 (patch) | |
tree | 629f3b507f50f4494e8cabf793a0b056cb10b386 /gtk/gtktestutils.c | |
parent | 0cfc812a5d448286d2344406e0f62414cc5ef661 (diff) | |
download | gtk+-4c40accbb989a427b8f6127b52e90ddd8d081129.tar.gz |
gdk: Move gdk_disable_multidevice tot he X11 backend
This api only ever did something for X11, so move
it there. Update the docs and adapt the only caller.
Diffstat (limited to 'gtk/gtktestutils.c')
-rw-r--r-- | gtk/gtktestutils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c index 83d2a46aa5..1a35d2e034 100644 --- a/gtk/gtktestutils.c +++ b/gtk/gtktestutils.c @@ -40,6 +40,10 @@ #include <gtk/gtk.h> #define GTK_COMPILATION +#ifdef GDK_WINDOWING_X11 +#include <gdk/x11/gdkx.h> +#endif + /** * SECTION:gtktesting * @Short_description: Utilities for testing GTK+ applications @@ -94,7 +98,9 @@ gtk_test_init (int *argcp, * send events that GTK+ understands if XI2 is * disabled, bummer. */ +#ifdef GDK_WINDOWING_X11 gdk_disable_multidevice (); +#endif gtk_init (); } |