[protocol PATCH v2 1/2] add parameters for set_fullscreen

juan.j.zhao at linux.intel.com juan.j.zhao at linux.intel.com
Mon Jan 9 06:50:20 PST 2012


From: Alex Wu <zhiwen.wu at linux.intel.com>

framerate: the expected framerate which will be used as refresh value to choose display mode.
flags:     indicate how to deal with resolution dismatch.
  support three methods:
  "SCALE" means the compositor will scale the surface to the fullscreen.
  "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
    currently, we will put the surface in the center of the screen.

Signed-off-by: Juan Zhao <juan.j.zhao at linux.intel.com>
Signed-off-by: Alex Wu <zhiwen.wu at linux.intel.com>

---
 protocol/wayland.xml |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 78d4734..041c607 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="framerate" type="uint"/>
+      <arg name="flags" type="uint"/>
+    </request>
+
+    <enum name="fullscreen_mothed">
+      <entry name="none" value="0"/>
+      <entry name="scale" value="1"/>
+      <entry name="force" value="2"/>
+      <entry name="fill" value="3"/>
+    </enum>
 
     <!-- Popup surfaces.  Will switch an implicit grab into
          owner-events mode, and grab will continue after the implicit
-- 
1.7.5.4



More information about the wayland-devel mailing list