mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
Add wl_surface.enter and wl_surface.leave events
These events let us track when a surface enters or leaves the scanout region of an output. This way if a surface moves to another output and that output is on a different card, we can suggest the toolkit reallocate its buffers appropriately. Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
This commit is contained in:
parent
f52a901f88
commit
a5df3de101
1 changed files with 18 additions and 0 deletions
|
|
@ -660,6 +660,24 @@
|
|||
|
||||
<arg name="region" type="object" interface="wl_region"/>
|
||||
</request>
|
||||
|
||||
<event name="enter">
|
||||
<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.
|
||||
</description>
|
||||
<arg name="output" type="object" interface="wl_output"/>
|
||||
</event>
|
||||
|
||||
<event name="leave">
|
||||
<description summary="surface leaves an output">
|
||||
This is emitted whenever a surface's creation, movement, or resizing
|
||||
results in it no longer having any part of it within the scanout region
|
||||
of an output.
|
||||
</description>
|
||||
<arg name="output" type="object" interface="wl_output"/>
|
||||
</event>
|
||||
</interface>
|
||||
|
||||
<interface name="wl_input_device" version="1">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue