diff options
Diffstat (limited to 'homescreen/qml/ShortcutArea.qml')
-rw-r--r-- | homescreen/qml/ShortcutArea.qml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/homescreen/qml/ShortcutArea.qml b/homescreen/qml/ShortcutArea.qml index a638d87..2bde841 100644 --- a/homescreen/qml/ShortcutArea.qml +++ b/homescreen/qml/ShortcutArea.qml @@ -54,18 +54,28 @@ Item { property variant applications: {'' : -1} + function find_app_with_launcher(app_id) { + if (launcher.is_running(app_id)) + return true + + return false + } + function find_app(app, apps) { for (var x in apps) { if (apps[x] == -1) continue - if (x === app) - return true + if (x === app) { + if (find_app_with_launcher(x)) + return true + } } return false } + function set_current_window_app(appid, window) { current_appid = appid current_window = window |