diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-01-26 15:53:08 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-02-08 13:49:49 +1000 |
commit | 8571c648a79444bcee9a0fe6e395129116372f49 (patch) | |
tree | 143843a256d3ccda8f461749de9a089dcebaf5ee /include/input.h | |
parent | 9fd6cb89539fde44a41ae5183c89ef9c8831c8dd (diff) |
Xext: if a root window is given in XTestFakeInput, move to that
For absolute events, if the client specifies a screen number offset the
coordinates by that. And add a new flag so we know when _not_ to add the
screen offset in GPE.
Without this offset and the flag, GPE would simply add the offset of the
current screen if POINTER_SCREEN is set.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include/input.h')
-rw-r--r-- | include/input.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/input.h b/include/input.h index f53ed9905..7b5ab945b 100644 --- a/include/input.h +++ b/include/input.h @@ -69,6 +69,7 @@ SOFTWARE. #define POINTER_SCREEN (1 << 4) /* Data in screen coordinates */ #define POINTER_NORAW (1 << 5) /* Don't generate RawEvents */ #define POINTER_EMULATED (1 << 6) /* Event was emulated from another event */ +#define POINTER_DESKTOP (1 << 7) /* Data in desktop coordinates */ /* GetTouchEvent flags */ #define TOUCH_ACCEPT (1 << 0) |