summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2012-04-17 17:22:45 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-04-20 10:45:38 -0400
commita5df3de101f88f16aa8c3325825501a47525d7d3 (patch)
tree93d0c304c3bc4a4840989549b4fe9c844b1ce2d7
parentf52a901f88c842b6cb657e50792050978cb47c50 (diff)
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>
-rw-r--r--protocol/wayland.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index f50ca3f..a11cbbe 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -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">