mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
examples/pan-action: Enable the xinput backend to test touch events
This commit is contained in:
parent
b94595f5f7
commit
04ca3d1af3
@ -1,6 +1,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
||||
#include <clutter/clutter.h>
|
||||
#ifdef CLUTTER_WINDOWING_X11
|
||||
#include <clutter/x11/clutter-x11.h>
|
||||
#endif
|
||||
|
||||
static ClutterActor *
|
||||
create_content_actor (void)
|
||||
@ -115,6 +118,10 @@ main (int argc, char *argv[])
|
||||
{
|
||||
ClutterActor *stage, *scroll, *info;
|
||||
|
||||
#ifdef CLUTTER_WINDOWING_X11
|
||||
clutter_x11_enable_xinput ();
|
||||
#endif
|
||||
|
||||
if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user