[PATCH] adding parameter for set_fullscreen

juan.j.zhao at linux.intel.com juan.j.zhao at linux.intel.com
Fri Dec 30 12:20:48 PST 2011


From: Juan Zhao <juan.j.zhao at linux.intel.com>

support two methods:
"FORCE" means changing the screen resolution to the mode of the surface.
  If there is no matched mode, just fallback to FILL mode.
"FILL" means changing fill the around of the surface to match the screen's mode.
  currently, we will put the surface in the center of the screen.
---
 protocol/wayland.xml |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 0c3a4ef..e80eff5 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -345,7 +345,17 @@
          fullscreen? what if there's already a fullscreen surface on
          the output, maybe you can only go fullscreen if you're
          active?  -->
-    <request name="set_fullscreen"/>
+    <request name="set_fullscreen">
+      <arg name="flags" type="uint"/>
+      <arg name="fullscreen" type="uint"/>
+    </request>
+
+    <enum name="fullscreen_mothed">
+      <entry name="none" value="0"/>
+      <entry name="force" value="1"/>
+      <entry name="fill" value="2"/>
+    </enum>
+
 
     <!-- The configure event asks the client to resize its surface.
          The size is a hint, in the sense that the client is free to
-- 
1.7.2.2



More information about the wayland-devel mailing list