summaryrefslogtreecommitdiff
path: root/src/wayland-extensions
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@pelagicore.com>2018-03-28 16:12:54 +0200
committerRobert Griebl <robert.griebl@pelagicore.com>2018-04-04 13:33:52 +0000
commitc0675368828969f3bfb5509f49a7c5368f0b8af3 (patch)
tree4eef821bbdbd9030c18c5263ee09963e8d89a6b7 /src/wayland-extensions
parentb4b6adf4c0e915b399c02cb7b913f0bd3ff03ecc (diff)
downloadqtapplicationmanager-c0675368828969f3bfb5509f49a7c5368f0b8af3.tar.gz
Replace QtWayland's surface extension with a custom AM extension
Qt's qt_surface_extension was deprecated with Qt 5.11, so we need a new way to communicate window properties. The new extension does not use a per-surface extension interface anymore, since that makes the code on both sides a lot simpler. Change-Id: I4f908fa5f0fa356c02c132cd32fe44b63deaf15e Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'src/wayland-extensions')
-rw-r--r--src/wayland-extensions/qtam-extension.xml65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/wayland-extensions/qtam-extension.xml b/src/wayland-extensions/qtam-extension.xml
new file mode 100644
index 00000000..8bc41b58
--- /dev/null
+++ b/src/wayland-extensions/qtam-extension.xml
@@ -0,0 +1,65 @@
+<protocol name="qtam_extension">
+ <copyright>
+ Copyright (C) 2018 Pelagicore AG
+ Contact: https://www.qt.io/licensing/
+
+ This file is part of the Pelagicore Application Manager.
+
+ $QT_BEGIN_LICENSE:BSD-QTAS$
+ Commercial License Usage
+ Licensees holding valid commercial Qt Automotive Suite licenses may use
+ this file in accordance with the commercial license agreement provided
+ with the Software or, alternatively, in accordance with the terms
+ contained in a written agreement between you and The Qt Company. For
+ licensing terms and conditions see https://www.qt.io/terms-conditions.
+ For further information use the contact form at https://www.qt.io/contact-us.
+
+ BSD License Usage
+ Alternatively, you may use this file under the terms of the BSD license
+ as follows:
+
+ "Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ * Neither the name of The Qt Company Ltd nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+
+ $QT_END_LICENSE$
+
+ SPDX-License-Identifier: BSD-3-Clause
+ </copyright>
+
+ <interface name="qtam_extension" version="1">
+ <event name="window_property_changed">
+ <arg name="surface" type="object" interface="wl_surface"/>
+ <arg name="name" type="string"/>
+ <arg name="value" type="array"/>
+ </event>
+
+ <request name="set_window_property">
+ <arg name="surface" type="object" interface="wl_surface"/>
+ <arg name="name" type="string"/>
+ <arg name="value" type="array"/>
+ </request>
+ </interface>
+</protocol>