Bug 430547

Summary: Elisa focus not set when accessing through system-tray icon
Product: [Applications] Elisa Reporter: tneo
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Severity: normal CC: nate
Priority: NOR    
Version: 20.08.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=423857
Latest Commit: Version Fixed In: 22.04

Description tneo 2020-12-18 17:26:12 UTC
When Elisa is minimised in the system tray, when you click on the icon to open Elisa, the focus is not set to Elisa and Elisa is opened in the background and the user has to click the icon in the task-manager to get the focus

1. Start Elisa, play a tune and minimise to system tray.
2. Have an application open with focus.
3. Click Elisa icon in system tray to open Elisa.

Elisa is opened in background and not given focus. Other (full) screen application are on top of Elisa.

When opening Elisa through system tray, focus is set to Elisa without having the user click or switch to the application.

Operating System: openSUSE Tumbleweed 20201212
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2

Comment 1 Nate Graham 2020-12-19 16:53:30 UTC

*** This bug has been marked as a duplicate of bug 423857 ***
Comment 2 Nate Graham 2021-01-04 16:27:08 UTC
Un-duping since Elisa will need an app-specific fix for this; see https://invent.kde.org/frameworks/kdbusaddons/-/merge_requests/5.
Comment 3 Nate Graham 2021-01-05 03:33:38 UTC
This needs a fix like the one in https://invent.kde.org/plasma/discover/commit/57dc3b725d1bfed713dffbc13543f79300503d61.
Comment 4 Bug Janitor Service 2022-03-05 18:05:52 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/elisa/-/merge_requests/334
Comment 5 Nate Graham 2022-03-07 16:51:56 UTC
Git commit 1927eee93651e16ba68cb758bbb475e7d0f593b1 by Nate Graham, on behalf of Olivier Trichet.
Committed on 07/03/2022 at 16:51.
Pushed by ngraham into branch 'master'.

Let clicking systray icon raise Elisa to the foreground

After hiding Elisa in systray and then switching between other
applications window, when the Elisa systray icon is clicked, Elisa
application is opened but not raised to the foreground.
FIXED-IN: 22.04

M  +1    -2    src/qml/ElisaMainWindow.qml
M  +2    -4    src/qml/PlatformIntegration.qml