From 91c364d87b88a89dc991f9effbf4d537ca19192a Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 15 Feb 2011 18:56:17 +0100 Subject: Optional XI2.1 support This patch adds XI2.1 support to mtview. Several instances of the the program can be open simultaneously, each one being a window into the device, which is mapped onto the whole screen. On a touchscreen, paiting can occur simultaneously in each window. The device mapping is automatically modified in multi-head setups, and xinput set-prop can be used to map the device to a portion of the screen. Thanks to Chase Douglas for fixing this. Signed-off-by: Henrik Rydberg --- tools/Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/Makefile.am') diff --git a/tools/Makefile.am b/tools/Makefile.am index f33b5e5..8e9f90a 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -4,3 +4,11 @@ INCLUDES=-I$(top_srcdir)/include/ mtview_SOURCES = mtview.c mtview_LDFLAGS = -lX11 -lutouch-frame -lutouch-evemu -lmtdev -lm + +if HAVE_XI + +AM_CFLAGS = $(XINPUT_CFLAGS) + +mtview_LDFLAGS += $(XINPUT_LIBS) + +endif -- cgit v1.2.3