[PATCH wayland] protocol: use transient flags for activate or not surfaces

Tiago Vignatti tiago.vignatti at intel.com
Fri May 18 08:47:07 PDT 2012

Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
 TODO                 |    3 ---
 protocol/wayland.xml |   13 +++++++++++--
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/TODO b/TODO
index c8dcbac..4e8002d 100644
--- a/TODO
+++ b/TODO
@@ -63,9 +63,6 @@ ICCCM
    recommended types for text or images, types that a clipboard
    manager must support, mime-types must be listed in preferred order
- - we need a "no kb focus please" mechanism.  Or should this be
-   implicit in a specific surface type?
  - configure should provide dx_left, dx_right, dy_top, dy_bottom, or
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index f14d1d2..cc1301f 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -440,12 +440,21 @@
+    <enum name="transient_method">
+      <description summary="define keyboard focus">
+	If a transient surface is marked as inactive then it does not get the
+	keyboard focus. Tooltips, some dialogs and other windows can benefit
+	from it. Surfaces are actived by default though.
+      </description>
+      <entry name="inactive" value="1"/>
+    </enum>
     <request name="set_transient">
       <description summary="make the surface a transient surface">
 	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
+	surface.  The transient_method 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
@@ -455,7 +464,7 @@
       <arg name="parent" type="object" interface="wl_shell_surface"/>
       <arg name="x" type="int"/>
       <arg name="y" type="int"/>
-      <arg name="flags" type="uint"/>
+      <arg name="transient_method" type="uint"/>
     <request name="set_fullscreen">

More information about the wayland-devel mailing list