Commit 8c9c2c26 authored by Aleksi Suomalainen's avatar Aleksi Suomalainen

[homescreen] Always bring homescreen to front when pressing the power button.

parent 6711ef8e
...@@ -283,8 +283,10 @@ Compositor { ...@@ -283,8 +283,10 @@ Compositor {
WindowWrapperMystic { } WindowWrapperMystic { }
} }
onDisplayOff: setCurrentWindow(root.homeWindow)
onWindowAdded: { onWindowAdded: {
if (debug) console.log("Compositor: Window added \"" + window.title + "\"") console.log("Compositor: Window added \"" + window.title + "\"")
var isHomeWindow = window.isInProcess && root.homeWindow == null && window.title === "Home" var isHomeWindow = window.isInProcess && root.homeWindow == null && window.title === "Home"
var isDialogWindow = window.category === "dialog" var isDialogWindow = window.category === "dialog"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment