This offers more precision when using devices like tablets, and also for
transformed surfaces.

Signed-off-by: Daniel Stone <[email protected]>
---
 protocol/wayland.xml |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 5daa34f..20fde37 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -345,8 +345,8 @@
     <event name="enter">
       <arg name="serial" type="uint"/>
       <arg name="surface" type="object" interface="wl_surface"/>
-      <arg name="x" type="int"/>
-      <arg name="y" type="int"/>
+      <arg name="x" type="signed_24_8"/>
+      <arg name="y" type="signed_24_8"/>
       <arg name="id" type="object" interface="wl_data_offer"/>
     </event>
 
@@ -354,8 +354,8 @@
 
     <event name="motion">
       <arg name="time" type="uint"/>
-      <arg name="x" type="int"/>
-      <arg name="y" type="int"/>
+      <arg name="x" type="signed_24_8"/>
+      <arg name="y" type="signed_24_8"/>
     </event>
 
     <event name="drop"/>
@@ -709,8 +709,8 @@
       </description>
 
       <arg name="time" type="uint"/>
-      <arg name="surface_x" type="int"/>
-      <arg name="surface_y" type="int"/>
+      <arg name="surface_x" type="signed_24_8"/>
+      <arg name="surface_y" type="signed_24_8"/>
     </event>
 
     <event name="button">
@@ -762,8 +762,8 @@
 
       <arg name="serial" type="uint"/>
       <arg name="surface" type="object" interface="wl_surface"/>
-      <arg name="surface_x" type="int"/>
-      <arg name="surface_y" type="int"/>
+      <arg name="surface_x" type="signed_24_8"/>
+      <arg name="surface_y" type="signed_24_8"/>
     </event>
 
     <event name="pointer_leave">
@@ -789,8 +789,8 @@
       <arg name="time" type="uint"/>
       <arg name="surface" type="object" interface="wl_surface"/>
       <arg name="id" type="int" />
-      <arg name="x" type="int" />
-      <arg name="y" type="int" />
+      <arg name="x" type="signed_24_8" />
+      <arg name="y" type="signed_24_8" />
     </event>
 
     <event name="touch_up">
@@ -802,8 +802,8 @@
     <event name="touch_motion">
       <arg name="time" type="uint"/>
       <arg name="id" type="int" />
-      <arg name="x" type="int" />
-      <arg name="y" type="int" />
+      <arg name="x" type="signed_24_8" />
+      <arg name="y" type="signed_24_8" />
     </event>
 
     <event name="touch_frame">
-- 
1.7.10

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to