aboutsummaryrefslogtreecommitdiffstats
path: root/imports
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2016-10-06 17:10:26 +0200
committerDominik Holland <dominik.holland@pelagicore.com>2016-10-12 12:52:14 +0000
commitda835a1346ef5ff97030479712830bb5556de545 (patch)
tree771b1b56067ff5d5e64c194f733682539cee9273 /imports
parentfc7ac091c673f0f46a76c8101fbc9bb6fdbb47b0 (diff)
Added support for stacking windows in the LaunchController
It's now possible to start multiple applications and stack the windows on each other. If a window is currently visible and an second application was started, the new window will be stacked on top. The back button will reveal the previous window again. If an window in the stack which is not the current window is closed. The window is removed from the stack without animations Change-Id: I0d2b0010ffe4ec07bb075d53c5ba524b52d55a7c Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
Diffstat (limited to 'imports')
-rw-r--r--imports/system/models/ApplicationManagerInterface.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/imports/system/models/ApplicationManagerInterface.qml b/imports/system/models/ApplicationManagerInterface.qml
index ea591b4..b8b4017 100644
--- a/imports/system/models/ApplicationManagerInterface.qml
+++ b/imports/system/models/ApplicationManagerInterface.qml
@@ -49,7 +49,7 @@ QtObject {
property var itemsToRelease: []
signal applicationSurfaceReady(Item item, bool isMinimized)
- signal releaseApplicationSurface()
+ signal releaseApplicationSurface(Item item)
// Cluster signals
signal clusterWidgetReady(string category, Item item)
@@ -133,14 +133,14 @@ QtObject {
function windowPropertyChanged(window, name, value) {
//print(":::LaunchController::: WindowManager:windowPropertyChanged", window, name, value)
if (name === "visibility" && value === false ) {
- root.releaseApplicationSurface()
+ root.releaseApplicationSurface(window)
}
}
function windowClosingHandler(index, item) {
var type = windowTypes[item]
if (type === "ivi") { // start close animation
- root.releaseApplicationSurface()
+ root.releaseApplicationSurface(item)
}
}
@@ -152,7 +152,7 @@ QtObject {
//If the item is visible the closing application hasn't been played yet and we need to wait until it is finished
if (item.visible) {
itemsToRelease.push(item)
- root.releaseApplicationSurface()
+ root.releaseApplicationSurface(item)
} else {
WindowManager.releaseWindow(item)
}