aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--imports/system/models/ApplicationManagerInterface.qml3
-rw-r--r--sysui/LaunchController.qml5
2 files changed, 7 insertions, 1 deletions
diff --git a/imports/system/models/ApplicationManagerInterface.qml b/imports/system/models/ApplicationManagerInterface.qml
index b8b4017..5485b5d 100644
--- a/imports/system/models/ApplicationManagerInterface.qml
+++ b/imports/system/models/ApplicationManagerInterface.qml
@@ -50,6 +50,7 @@ QtObject {
signal applicationSurfaceReady(Item item, bool isMinimized)
signal releaseApplicationSurface(Item item)
+ signal unhandledSurfaceReceived(Item item)
// Cluster signals
signal clusterWidgetReady(string category, Item item)
@@ -91,7 +92,6 @@ QtObject {
} else if (isClusterWidget) {
if (!Style.withCluster) {
acceptWindow = false
- item.parent = null
} else {
windowTypes[item] = "cluster"
if (ApplicationManager.get(appID).categories[0] === "navigation")
@@ -126,6 +126,7 @@ QtObject {
root.applicationSurfaceReady(item, isMinimized)
} else {
+ root.unhandledSurfaceReceived(item)
console.error("window was not accepted: ", item)
}
}
diff --git a/sysui/LaunchController.qml b/sysui/LaunchController.qml
index 76a4659..88e43aa 100644
--- a/sysui/LaunchController.qml
+++ b/sysui/LaunchController.qml
@@ -193,5 +193,10 @@ StackView {
onReleaseApplicationSurface: {
root.popItem(item)
}
+
+ onUnhandledSurfaceReceived: {
+ item.visible = false
+ item.parent = dummyitem
+ }
}
}