[gtk/wip/carlosg/present-window-on-wayland: 1/3] wayland/protocol: Update gtk-shell protocol to v3



commit 45d6c0091a37df874aaf92a16b096af3b532e259
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jan 23 17:00:33 2019 +0100

    wayland/protocol: 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.

 gdk/wayland/protocol/gtk-shell.xml | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/gdk/wayland/protocol/gtk-shell.xml b/gdk/wayland/protocol/gtk-shell.xml
index 8191fa9cfb..fb91940b30 100644
--- a/gdk/wayland/protocol/gtk-shell.xml
+++ b/gdk/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]