diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2012-06-20 08:52:40 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2012-06-20 08:52:40 +0100 |
commit | 6ca9a59e46553a7a4734ce0200aeacb72279d584 (patch) | |
tree | 62a3c0d26bd47270a26adf8eab4261413f5d8f77 | |
parent | a9847496a840f858b50259e56773667636c378c9 (diff) | |
download | clutter-6ca9a59e46553a7a4734ce0200aeacb72279d584.tar.gz |
interactive/touch-events: Protect x11-specific calls
Use the CLUTTER_WINDOWING_X11 define to protect platform-specific calls
like clutter_x11_enable_xinput().
https://bugzilla.gnome.org/show_bug.cgi?id=678423
-rw-r--r-- | tests/interactive/test-touch-events.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/interactive/test-touch-events.c b/tests/interactive/test-touch-events.c index 905eea11a..46c6d8809 100644 --- a/tests/interactive/test-touch-events.c +++ b/tests/interactive/test-touch-events.c @@ -112,7 +112,9 @@ test_touch_events_main (int argc, char *argv[]) ClutterActor *stage, *canvas; int i; +#ifdef CLUTTER_WINDOWING_X11 clutter_x11_enable_xinput (); +#endif /* initialize Clutter */ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) |