mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-22 01:40:49 -05:00
protocol: clarify when wl_surface.enter events are sent
It was unclear what happens when a output global is bound. I believe the expectation is that all surfaces on that output will receive enter. Also make it explicit a surface must be mapped, i.e. have both content and role, to enter an output. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
0dc23e380a
commit
58384280d7
1 changed files with 4 additions and 1 deletions
|
|
@ -1635,7 +1635,7 @@
|
|||
<description summary="surface enters an output">
|
||||
This is emitted whenever a surface's creation, movement, or resizing
|
||||
results in some part of it being within the scanout region of an
|
||||
output.
|
||||
output. A surface must be mapped before it can enter any outputs.
|
||||
|
||||
Note that a surface may be overlapping with zero or more outputs.
|
||||
</description>
|
||||
|
|
@ -2562,6 +2562,9 @@
|
|||
actually visible. This typically corresponds to a monitor that
|
||||
displays part of the compositor space. This object is published
|
||||
as global during start up, or when a monitor is hotplugged.
|
||||
|
||||
When an output global is first bound, wl_surface.enter events should be
|
||||
sent for all surfaces already on that output.
|
||||
</description>
|
||||
|
||||
<enum name="subpixel">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue