protocol: remove absolute coordinates from pointer

Remove the absolute coordinate fields from the pointer motion and
pointer_focus events. Clients are not supposed to see any global
coordinates.

Fix wayland-server code accordingly. wayland-client code is unaffected.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
Pekka Paalanen 2012-02-14 11:00:12 +02:00 committed by Kristian Høgsberg
parent 7243062f93
commit 5536031bfb
3 changed files with 6 additions and 16 deletions

View file

@ -594,14 +594,11 @@
<event name="motion">
<description summary="pointer motion event">
Notification of pointer location change. x,y are the absolute
location on the screen. surface_[xy] are the location
relative to the focused surface.
Notification of pointer location change. The arguments surface_[xy]
are the location relative to the focused surface.
</description>
<arg name="time" type="uint"/>
<arg name="x" type="int"/>
<arg name="y" type="int"/>
<arg name="surface_x" type="int"/>
<arg name="surface_y" type="int"/>
</event>
@ -637,8 +634,6 @@
<arg name="time" type="uint"/>
<arg name="surface" type="object" interface="wl_surface"/>
<arg name="x" type="int"/>
<arg name="y" type="int"/>
<arg name="surface_x" type="int"/>
<arg name="surface_y" type="int"/>
</event>