Bug 451607 - Application are not restored where they were when clicking on the systray icon
Summary: Application are not restored where they were when clicking on the systray icon
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.24.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-17 09:02 UTC by András Manţia
Modified: 2024-06-07 20:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description András Manţia 2022-03-17 09:02:16 UTC
In a multi-monitor setup clicking on a system icon of an application bring up the window on the screen that last had the focus. This is very annoying when you want to see applications always on a certain screen, and no, making kwin to put on that is not a solution, as you might want to move the app to a different screen for a while and expect to pop up where it was left last time.
Reproducible with any app that can be minimized to systray.
Comment 1 Nate Graham 2022-03-26 02:25:36 UTC
X11 or Wayland?
Comment 2 Bug Janitor Service 2022-04-10 04:34:54 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 András Manţia 2022-04-14 11:26:32 UTC
X11.
Comment 4 Nate Graham 2022-04-14 15:13:58 UTC
Does the problem go away if you either use uncheck System Settings > Window Behavior > Window Management > Advanced > Allow KDE apps to remember the positions of their main windows?

Also, what if you use Wayland?
Comment 5 András Manţia 2022-04-14 16:38:01 UTC
No, that setting doesn't change the behavior.  As for Wayland cannot say, I use X11 since forever and never tried to set up wayland.
Comment 6 András Manţia 2022-04-14 16:43:02 UTC
Here is an example how it goes (test case app Ruqola):
- open it on screen 1
- minimize to tray (close the window)
- click on the tray icon: it is shown on screen 1.
- move to screen 2
- close the window (minimize to tray)
-  click the tray icon: it is shown again on screen 1

Now move to screen 2, but minimize the window, don't close. Click the tray icon: it is shown where it was on screen 2.
Same can be reproduced with KMail or Amarok when tray icon is enabled, but I cannot reproduce e.g with Charm (charmtimetracker).
Comment 7 András Manţia 2022-04-14 16:46:23 UTC
FTR, Charm is a Qt only app. And I tested with Teamviewer, which is again not a KDE app, that works fine too. So the problem seems to be related to KDE applications.
Comment 8 Nate Graham 2022-04-18 14:15:11 UTC
Can you please try on Wayland? There shouldn't be any real setup necessary; just change the session type to Wayland in the login screen when you log in.
Comment 9 András Manţia 2022-04-19 17:38:34 UTC
If that would be that simple... :) No, just using Plasma (Wayland) in the login screen does not work, as with this system (for whatever reason, I never debugged so far) it doesn't work, I get back to the login screen.
Comment 10 Bug Janitor Service 2022-05-04 04:35:20 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 András Manţia 2022-11-02 09:26:08 UTC
Still present with X11/Nvidia drivers Plasma 5.26.2
Comment 12 András Manţia 2022-11-02 09:27:47 UTC
With my current config (first monitor scaled down from 4K with xrandr)  it is even worse, the restored window appears partially on the first monitor, partially on the second, no matter where it was when it was closed.
Comment 13 Zamundaaa 2024-06-07 20:00:12 UTC
On X11 it's up to the app to remember its window placement while it's "minimized" in the system tray. If you still have this issue, please report it to the affected apps