diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-08-07 13:53:34 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-08-15 08:47:50 +0000 |
commit | 992cde48d72435052514845b8add8d0dc880ccb2 (patch) | |
tree | f5768d4621f2286aea5e10b088cc337cfe6aacd9 /examples/wayland/pure-qml | |
parent | 4d0ae358dd646c369829bb38c099eb47bd04db4a (diff) |
Compositor API: Add xdg-shell stable
[ChangeLog][Compositor API] Added APIs for xdg-shell stable.
Code copied from the V6 implementation with suffixes and prefixes removed.
Otherwise a few minor edits, such as renaming xdg_shell to xdg_wm_base, and
handling the anchor and gravity edges no longer being bitfields.
Examples that used v6 have been updated to use stable instead, or, in some
cases, to support both.
Task-number: QTBUG-66784
Change-Id: Ia619b478a938fdcd9b47af8a8df2d7fcc4406204
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'examples/wayland/pure-qml')
-rw-r--r-- | examples/wayland/pure-qml/qml/main.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml index b188ebbb5..69be7cf10 100644 --- a/examples/wayland/pure-qml/qml/main.qml +++ b/examples/wayland/pure-qml/qml/main.qml @@ -49,7 +49,7 @@ ****************************************************************************/ import QtQuick 2.0 -import QtWayland.Compositor 1.1 +import QtWayland.Compositor 1.3 WaylandCompositor { id: waylandCompositor @@ -58,6 +58,11 @@ WaylandCompositor { // Shell surface extension. Needed to provide a window concept for Wayland clients. // I.e. requests and events for maximization, minimization, resizing, closing etc. + XdgShell { + onToplevelCreated: screen.handleShellSurface(xdgSurface) + } + + // Unstable version of xdg-shell still used by some clients XdgShellV6 { onToplevelCreated: screen.handleShellSurface(xdgSurface) } |