summaryrefslogtreecommitdiff
path: root/src/frame-impl.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-02-14 12:51:01 +0100
committerHenrik Rydberg <rydberg@euromail.se>2011-02-15 12:42:41 +0100
commit93e1a5a3904ef2f14110d8b807bcd7d107b3b2a4 (patch)
treea50e22d57ae77bcaa7674b4ff4bf8b2b1c3f690f /src/frame-impl.h
parenta06bde2b7aec991b798de9a8e0d7972adaabb40d (diff)
Map device coordinates onto target surface
The current implementation outputs most touch attributes in device coordinates. However, the primary use case is to map the input device onto an area on the screen, needed in particular for multihead setups. Moreover, the XI2.1 backend works with screen coordinates, creating an unnecessary discrepancy between backends. This patch adds the basic transformation layer to the utouch surface, thus serving as the master point of device-to-surface mapping. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/frame-impl.h')
-rw-r--r--src/frame-impl.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/frame-impl.h b/src/frame-impl.h
index 63cbc7c..38affe7 100644
--- a/src/frame-impl.h
+++ b/src/frame-impl.h
@@ -30,7 +30,6 @@ struct utouch_frame_engine {
30 int hold_ms; 30 int hold_ms;
31 int frame; 31 int frame;
32 int slot; 32 int slot;
33 float max_orient;
34 struct utouch_surface *surface; 33 struct utouch_surface *surface;
35 struct utouch_frame **frames; 34 struct utouch_frame **frames;
36 struct utouch_frame *next; 35 struct utouch_frame *next;