mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
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:
parent
7243062f93
commit
5536031bfb
3 changed files with 6 additions and 16 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue