Commit 2af2a0a8 authored by Aleksi Suomalainen's avatar Aleksi Suomalainen

[notifications] Notifications now bring the window to front or start an application when touched.

parent ed419a83
......@@ -81,7 +81,7 @@ Item {
anchors.fill: parent
onClicked: {
if (modelData.userRemovable) {
modelData.removeRequested()
modelData.actionInvoked("default")
}
}
......
......@@ -344,6 +344,11 @@ Compositor {
}
}
onWindowRaised: {
console.log("Compositor: Raising window: " + window.title + " category: " + window.category)
windowToFront(window.windowId)
}
onWindowRemoved: {
console.log("Compositor: Window removed \"" + window.title + "\"" + " category: " + window.category)
Desktop.instance.switcher.switchModel.removeWindowForTitle(window.title)
......
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