Commit 6414ce78 authored by Marco Martin's avatar Marco Martin
Browse files

different approach to detect if the window is focused

parent 2a0de3b7
...@@ -304,7 +304,7 @@ Item { ...@@ -304,7 +304,7 @@ Item {
states: [ states: [
State { State {
when: root.Window.active when: root.Window.activeFocusItem !== null
PropertyChanges { PropertyChanges {
target: launcher target: launcher
opacity: 1 opacity: 1
...@@ -312,7 +312,7 @@ Item { ...@@ -312,7 +312,7 @@ Item {
} }
}, },
State { State {
when: !root.Window.active when: root.Window.activeFocusItem === null
PropertyChanges { PropertyChanges {
target: launcher target: launcher
opacity: 0 opacity: 0
......
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