wl_shell: Don't require that parent surfaces are wl_shell_surfaces
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 27 Jun 2012 14:30:08 +0000 (10:30 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 27 Jun 2012 14:30:08 +0000 (10:30 -0400)
The set_transient and set_popup requests take a wl_shell_surface as
the parent surface argument.  We don't need the parent surface to be
a shell surface and this restricts the types of surfaces we can use
the transient and popup surface types on.

protocol/wayland.xml

index 23b244f..fba5947 100644 (file)
        that relative position during moves.
       </description>
 
-      <arg name="parent" type="object" interface="wl_shell_surface"/>
+      <arg name="parent" type="object" interface="wl_surface"/>
       <arg name="x" type="int"/>
       <arg name="y" type="int"/>
       <arg name="flags" type="uint"/>
 
       <arg name="seat" type="object" interface="wl_seat"/>
       <arg name="serial" type="uint"/>
-      <arg name="parent" type="object" interface="wl_shell_surface"/>
+      <arg name="parent" type="object" interface="wl_surface"/>
       <arg name="x" type="int"/>
       <arg name="y" type="int"/>
       <arg name="flags" type="uint"/>