mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-05 07:15:46 -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"/>
|
<arg name="region" type="object" interface="wl_region"/>
|
||||||
</request>
|
</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>
|
||||||
|
|
||||||
<interface name="wl_input_device" version="1">
|
<interface name="wl_input_device" version="1">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue