xdg-toplevel-drag: clarify offset is relative to geometry

The current description is not clear about it, though the only available
implementation works like that, so make it explicit in the protocol
description.

Signed-off-by: Nick Diego Yamane <nickdiego@igalia.com>
This commit is contained in:
Nick Diego Yamane 2024-10-03 07:13:38 -04:00 committed by David Edmundson
parent 9b95f83a2f
commit e7fea17be8

View file

@ -118,9 +118,10 @@
Request that the window will be moved with the cursor during the drag Request that the window will be moved with the cursor during the drag
operation. The offset is a hint to the compositor how the toplevel operation. The offset is a hint to the compositor how the toplevel
should be positioned relative to the cursor hotspot in surface local should be positioned relative to the cursor hotspot in surface local
coordinates. For example it might only be used when an unmapped window coordinates and relative to the geometry of the toplevel being attached.
is attached. The attached window does not participate in the selection See xdg_surface.set_window_geometry. For example it might only
of the drag target. be used when an unmapped window is attached. The attached window
does not participate in the selection of the drag target.
If the toplevel is unmapped while it is attached, it is automatically If the toplevel is unmapped while it is attached, it is automatically
detached from the drag. In this case this request has to be called again detached from the drag. In this case this request has to be called again