[mutter/wip/carlosg/gtk-shell-request-focus: 15/16] wayland: Update gtk-shell protocol to v3



commit a08d7cf48a2338992bde123106b6d5ba572a4ea9
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jan 23 16:43:46 2019 +0100

    wayland: Update gtk-shell protocol to v3
    
    This version has 2 new requests:
    - gtk_shell1.notify_launch notifies the compositor that the requesting
      client shall launch another application. The given ID is expected to
      be unique.
    - gtk_surface1.request_focus notifies the compositor that a surface
      requests focus due to it being activated. The given ID is passed to
      this process through undetermined means, if it corresponds with a
      current startup ID and there was no user interaction in between the
      surface will be focused, otherwise it will demand attention.

 src/wayland/protocol/gtk-shell.xml | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/protocol/gtk-shell.xml b/src/wayland/protocol/gtk-shell.xml
index 8191fa9cf..fb91940b3 100644
--- a/src/wayland/protocol/gtk-shell.xml
+++ b/src/wayland/protocol/gtk-shell.xml
@@ -1,6 +1,6 @@
 <protocol name="gtk">
 
-  <interface name="gtk_shell1" version="2">
+  <interface name="gtk_shell1" version="3">
     <description summary="gtk specific extensions">
       gtk_shell is a protocol extension providing additional features for
       clients implementing it.
@@ -28,9 +28,14 @@
     <request name="system_bell">
       <arg name="surface" type="object" interface="gtk_surface1" allow-null="true"/>
     </request>
+
+    <!-- Version 3 additions -->
+    <request name="notify_launch" since="3">
+      <arg name="startup_id" type="string"/>
+    </request>
   </interface>
 
-  <interface name="gtk_surface1" version="2">
+  <interface name="gtk_surface1" version="3">
     <request name="set_dbus_properties">
       <arg name="application_id" type="string" allow-null="true"/>
       <arg name="app_menu_path" type="string" allow-null="true"/>
@@ -72,6 +77,11 @@
     <event name="configure_edges" since="2">
       <arg name="constraints" type="array"/>
     </event>
+
+    <!-- Version 3 additions -->
+    <request name="request_focus" since="3">
+      <arg name="startup_id" type="string" allow-null="true"/>
+    </request>
   </interface>
 
 </protocol>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]