summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/wayland/pure-qml/qml/Screen.qml6
-rw-r--r--examples/wayland/pure-qml/qml/main.qml8
2 files changed, 14 insertions, 0 deletions
diff --git a/examples/wayland/pure-qml/qml/Screen.qml b/examples/wayland/pure-qml/qml/Screen.qml
index 0d6c93adc..2043fa8b4 100644
--- a/examples/wayland/pure-qml/qml/Screen.qml
+++ b/examples/wayland/pure-qml/qml/Screen.qml
@@ -79,6 +79,12 @@ WaylandOutput {
inputDevice: output.compositor.defaultInputDevice
}
}
+
+ Shortcut {
+ sequence: "Meta+F"
+ onActivated: qtWindowManager.showIsFullScreen = !qtWindowManager.showIsFullScreen
+ }
+
Shortcut {
sequence: "Ctrl+Alt+Backspace"
onActivated: Qt.quit()
diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml
index bc9f29f39..ac8dde712 100644
--- a/examples/wayland/pure-qml/qml/main.qml
+++ b/examples/wayland/pure-qml/qml/main.qml
@@ -63,6 +63,14 @@ WaylandCompositor {
}
extensions: [
+ WindowManager {
+ id: qtWindowManager
+ onShowIsFullScreenChanged: console.debug("Show is fullscreen hint for Qt applications:", showIsFullScreen)
+
+ Component.onCompleted: {
+ initialize();
+ }
+ },
WlShell {
id: defaultShell