Bug 430547 - Elisa focus not set when accessing through system-tray icon
Summary: Elisa focus not set when accessing through system-tray icon
Status: RESOLVED FIXED
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: 20.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-18 17:26 UTC by tneo
Modified: 2022-03-07 16:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 22.04


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tneo 2020-12-18 17:26:12 UTC
SUMMARY
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

STEPS TO REPRODUCE
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.

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

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

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20201212
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2


ADDITIONAL INFORMATION
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

https://invent.kde.org/multimedia/elisa/commit/1927eee93651e16ba68cb758bbb475e7d0f593b1