From 70d85926c60996afe98ee244acad05d478618ceb Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 18 Sep 2017 14:09:05 +0200 Subject: xdg-foreign-v2: Rename export and import calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As export is a reserved keyword in C++, in order for the output generated by wayland_scanner to compile correctly rename export to export_toplevel and import to import_toplevel this needs a new protocol version as is an incompatible change [jadahl: Fix various documentation issues] Signed-off-by: Marco Martin Signed-off-by: Jonas Ådahl Reviewed-by: Jonas Ådahl --- unstable/xdg-foreign/xdg-foreign-unstable-v2.xml | 56 ++++++++++++------------ 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'unstable/xdg-foreign') diff --git a/unstable/xdg-foreign/xdg-foreign-unstable-v2.xml b/unstable/xdg-foreign/xdg-foreign-unstable-v2.xml index 062b090..bf46fa8 100644 --- a/unstable/xdg-foreign/xdg-foreign-unstable-v2.xml +++ b/unstable/xdg-foreign/xdg-foreign-unstable-v2.xml @@ -1,5 +1,5 @@ - + Copyright © 2015-2016 Red Hat Inc. @@ -32,12 +32,12 @@ some of its own surface above the other clients surface. In order for a client A to get a reference of a surface of client B, client - B must first export its surface using xdg_exporter.export. Upon doing this, - client B will receive a handle (a unique string) that it may share with - client A in some way (for example D-Bus). After client A has received the - handle from client B, it may use xdg_importer.import to create a reference - to the surface client B just exported. See the corresponding requests for - details. + B must first export its surface using xdg_exporter.export_toplevel. Upon + doing this, client B will receive a handle (a unique string) that it may + share with client A in some way (for example D-Bus). After client A has + received the handle from client B, it may use xdg_importer.import_toplevel + to create a reference to the surface client B just exported. See the + corresponding requests for details. A possible use case for this is out-of-process dialogs. For example when a sandboxed client without file system access needs the user to select a file @@ -56,7 +56,7 @@ reset. - + A global interface used for exporting surfaces that can later be imported using xdg_importer. @@ -69,25 +69,25 @@ - - - The export request exports the passed surface so that it can later be + + + The export_toplevel request exports the passed surface so that it can later be imported via xdg_importer. When called, a new xdg_exported object will be created and xdg_exported.handle will be sent immediately. See the corresponding interface and event for details. A surface may be exported multiple times, and each exported handle may - be used to create a xdg_imported multiple times. Only xdg_surface - surfaces may be exported. + be used to create a xdg_imported multiple times. Only xdg_toplevel + equivalent surfaces may be exported. - - + A global interface used for importing surfaces exported by xdg_exporter. With this interface, a client can create a reference to a surface of @@ -101,22 +101,22 @@ - - - The import request imports a surface from any client given a handle - retrieved by exporting said surface using xdg_exporter.export. When - called, a new xdg_imported object will be created. This new object + + + The import_toplevel request imports a surface from any client given a handle + retrieved by exporting said surface using xdg_exporter.export_toplevel. + When called, a new xdg_imported object will be created. This new object represents the imported surface, and the importing client can manipulate its relationship using it. See xdg_imported for details. - - + A xdg_exported object represents an exported reference to a surface. The exported surface may be referenced as long as the xdg_exported object not @@ -136,14 +136,14 @@ The handle event contains the unique handle of this exported surface reference. It may be shared with any client, which then can use it to - import the surface by calling xdg_importer.import. A handle may be - used to import the surface multiple times. + import the surface by calling xdg_importer.import_toplevel. A handle + may be used to import the surface multiple times. - + A xdg_imported object represents an imported reference to surface exported by some client. A client can use this interface to manipulate @@ -161,9 +161,9 @@ Set the imported surface as the parent of some surface of the client. - The passed surface must be a toplevel xdg_surface. Calling this function - sets up a surface to surface relation with the same stacking and positioning - semantics as xdg_surface.set_parent. + The passed surface must be a xdg_toplevel equivalent. Calling this + function sets up a surface to surface relation with the same stacking + and positioning semantics as xdg_toplevel.set_parent. -- cgit v1.2.3