From 997ae0343730c66d581fd147741cbe27fbe55af2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 3 Jan 2012 09:26:22 +1000 Subject: Set a flag on the pointer-emulating touch event Toolkits need to know which touch event emulated a pointer event and which ones do not. To quote Carlos Garnacho: GTK+ does client-side windows by default (GdkWindows without a backing X window), for this to work the toplevel window in the client needs to select for more events that it wouldn't normally select for in order to cater for the event masks in such child "windows". This means that ideally GTK+ should set the touch events mask in the toplevel, and then find out whether the "window" would receive pointer or touch events for the sequence emulating the pointer, and perform the emulation itself. Reported-by: Carlos Garnacho Reviewed-by: Chase Douglas Signed-off-by: Peter Hutterer --- XI2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'XI2.h') diff --git a/XI2.h b/XI2.h index 4368006..e864b06 100644 --- a/XI2.h +++ b/XI2.h @@ -158,6 +158,7 @@ #define XIPointerEmulated (1 << 16) /* Device event flags (touch events only) */ #define XITouchPendingEnd (1 << 16) +#define XITouchEmulatingPointer (1 << 17) /* Touch modes */ #define XIDirectTouch 1 -- cgit v1.2.3