[PATCH] Gut wl_shell and rename to wl_transfer_src

Casey Dahlin cdahlin at redhat.com
Tue Oct 25 15:54:57 PDT 2011

wl_shell isn't needed anymore since most of the experimental compositors seem
to roll their own, often in support of different semantics. This rips
everything out of it except create_drag and create_selection. When those two
things get reworked we can kill this class entirely.

We rename to wl_transfer_src for clarity.

Signed-off-by: Casey Dahlin <cdahlin at redhat.com>
 protocol/wayland.xml |   75 +-------------------------------------------------
 1 files changed, 1 insertions(+), 74 deletions(-)

diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 48ba68a..88e4232 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -153,33 +153,7 @@
     <event name="release"/>
-  <interface name="wl_shell" version="1">
-    <request name="move">
-      <arg name="surface" type="object" interface="wl_surface"/>
-      <arg name="input_device" type="object" interface="wl_input_device"/>
-      <arg name="time" type="uint"/>
-    </request>
-    <enum name="resize">
-      <entry name="none" value="0"/>
-      <entry name="top" value="1"/>
-      <entry name="bottom" value="2"/>
-      <entry name="left" value="4"/>
-      <entry name="top_left" value="5"/>
-      <entry name="bottom_left" value="6"/>
-      <entry name="right" value="8"/>
-      <entry name="top_right" value="9"/>
-      <entry name="bottom_right" value="10"/>
-    </enum>
-    <request name="resize">
-      <arg name="surface" type="object" interface="wl_surface"/>
-      <arg name="input_device" type="object" interface="wl_input_device"/>
-      <arg name="time" type="uint"/>
-      <!-- edges is an enum, need to get the values in here -->
-      <arg name="edges" type="uint"/>
-    </request>
+  <interface name="wl_transfer_src" version="1">
     <request name="create_drag">
       <arg name="id" type="new_id" interface="wl_drag"/>
@@ -187,53 +161,6 @@
     <request name="create_selection">
       <arg name="id" type="new_id" interface="wl_selection"/>
-    <!-- Make the surface visible as a toplevel window. -->
-    <request name="set_toplevel">
-      <arg name="surface" type="object" interface="wl_surface"/>
-    </request>
-    <!-- Map the surface relative to an existing surface. The x and y
-         arguments specify the locations of the upper left corner of
-         the surface relative to the upper left corner of the parent
-         surface.  The flags argument controls overflow/clipping
-         behaviour when the surface would intersect a screen edge,
-         panel or such.  And possibly whether the offset only
-         determines the initial position or if the surface is locked
-         to that relative position during moves. -->
-    <request name="set_transient">
-      <arg name="surface" type="object" interface="wl_surface"/>
-      <arg name="parent" type="object" interface="wl_surface"/>
-      <arg name="x" type="int"/>
-      <arg name="y" type="int"/>
-      <arg name="flags" type="uint"/>
-    </request>
-    <!-- Map the surface as a fullscreen surface.  There are a number
-         of options here: on which output? if the surface size doesn't
-         match the output size, do we scale, change resolution, or add
-         black borders? is that something the client controls?  what
-         about transient surfaces, do they float on top of the
-         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">
-      <arg name="surface" type="object" interface="wl_surface"/>
-    </request>
-    <!-- The configure event asks the client to resize its surface.
-         The size is a hint, in the sense that the client is free to
-         ignore it if it doesn't resize, pick a smaller size (to
-         satisfy aspect ration or resize in steps of NxM pixels).  The
-         client is free to dismiss all but the last configure event it
-         received. -->
-    <event name="configure">
-      <arg name="time" type="uint"/>
-      <arg name="edges" type="uint"/>
-      <arg name="surface" type="object" interface="wl_surface"/>
-      <arg name="width" type="int"/>
-      <arg name="height" type="int"/>
-    </event>
   <interface name="wl_selection" version="1">

More information about the wayland-devel mailing list