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
operation. The offset is a hint to the compositor how the toplevel
should be positioned relative to the cursor hotspot in surface local
coordinates. For example it might only be used when an unmapped window
is attached. The attached window does not participate in the selection
of the drag target.
coordinates and relative to the geometry of the toplevel being attached.
See xdg_surface.set_window_geometry. For example it might only
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
detached from the drag. In this case this request has to be called again