From: Matthias Clasen Date: Sat, 30 Mar 2013 05:11:41 +0000 (-0400) Subject: docs: Improve wl_pointer protocol docs X-Git-Tag: 1.0.90~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f4008acb3debbf08e45d98e52739c3bcd134d4d;p=platform%2Fupstream%2Fwayland.git docs: Improve wl_pointer protocol docs Some descriptions were missing here. --- diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 442862d..87e3d5f 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -1167,6 +1167,17 @@ + + The wl_pointer interface represents one or more input devices, + such as mice, which control the pointer location and pointer_focus + of a seat. + + The wl_pointer interface generates motion, enter and leave + events for the surfaces that the pointer is located over, + and button and axis events for button presses, button releases + and scrolling. + + Set the pointer surface, i.e., the surface that contains the @@ -1197,7 +1208,7 @@ undefined, and the wl_surface is unmapped. - + @@ -1206,9 +1217,11 @@ Notification that this seat's pointer is focused on a certain - surface. When an seat's focus enters a surface, the pointer image + surface. + + When an seat's focus enters a surface, the pointer image is undefined and a client should respond to this event by setting - an appropriate pointer image. + an appropriate pointer image with the set_cursor request. @@ -1219,6 +1232,11 @@ + Notification that this seat's pointer is no longer focused on + a certain surface. + + The leave notification is sent before the enter notification + for the new focus. @@ -1226,8 +1244,9 @@ - Notification of pointer location change. The arguments surface_[xy] - are the location relative to the focused surface. + Notification of pointer location change. The arguments + surface_x and surface_y are the location relative to the + focused surface. @@ -1240,14 +1259,16 @@ Describes the physical state of a button which provoked the button event. - - + + - Mouse button click and release notifications. The location - of the click is given by the last motion or pointer_focus event. + Mouse button click and release notifications. + + The location of the click is given by the last motion or + enter event. @@ -1257,7 +1278,9 @@ - + + Describes the axis types of scroll events. +