summaryrefslogtreecommitdiff
path: root/protocol/xdg-shell.xml
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-02-01 18:36:41 -0500
committerKristian Høgsberg <krh@bitplanet.net>2014-02-06 13:05:03 -0800
commit74073454462f9a1fb71319779d4c2d57e1d0e9d5 (patch)
treeb75e5c6632d2dc4aeb37dfffecd19271c4ee9ac2 /protocol/xdg-shell.xml
parent2097fe12d47d46efb8784f757dbfb36dc0ed8a8f (diff)
downloadweston-74073454462f9a1fb71319779d4c2d57e1d0e9d5.tar.gz
xdg-shell: Add set_margin request
This is used to figure out the size of "invisible" decorations, which we'll use to better know the visible extents of the surface, which we can use for constraining, titlebars, and more.
Diffstat (limited to 'protocol/xdg-shell.xml')
-rw-r--r--protocol/xdg-shell.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/protocol/xdg-shell.xml b/protocol/xdg-shell.xml
index 5c21f4eb..f0d04aa3 100644
--- a/protocol/xdg-shell.xml
+++ b/protocol/xdg-shell.xml
@@ -124,6 +124,32 @@
<arg name="parent" type="object" interface="wl_surface" allow-null="true"/>
</request>
+ <request name="set_margin">
+ <description summary="set the visible frame boundaries">
+ This tells the compositor what the visible size of the window
+ should be, so it can use it to determine what borders to use for
+ constrainment and alignment.
+
+ CSD often has invisible areas for decoration purposes, like drop
+ shadows. These "shadow" drawings need to be subtracted out of the
+ normal boundaries of the window when computing where to place
+ windows (e.g. to set this window so it's centered on top of another,
+ or to put it to the left or right of the screen.)
+
+ This value should change as little as possible at runtime, to
+ prevent flicker.
+
+ This value is also ignored when the window is maximized or
+ fullscreen, and assumed to be 0.
+
+ If never called, this value is assumed to be 0.
+ </description>
+ <arg name="left_margin" type="int"/>
+ <arg name="right_margin" type="int"/>
+ <arg name="top_margin" type="int"/>
+ <arg name="bottom_margin" type="int"/>
+ </request>
+
<request name="set_title">
<description summary="set surface title">
Set a short title for the surface.