Commit a5df3de1 authored by Casey Dahlin's avatar Casey Dahlin Committed by Kristian Høgsberg
Browse files

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: default avatarCasey Dahlin <cdahlin@redhat.com>
parent f52a901f
...@@ -660,6 +660,24 @@ ...@@ -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">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment