Bug 396395

Summary: Task manager window ordering on application restart
Product: [Plasma] plasmashell Reporter: Tin Blaskovic <tin.blaskovic>
Component: Task Manager and Icons-Only Task ManagerAssignee: Eike Hein <hein>
Status: RESOLVED WORKSFORME    
Severity: normal CC: plasma-bugs
Priority: NOR    
Version: 5.13.2   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tin Blaskovic 2018-07-11 05:02:55 UTC
Hi,

short use case for this problem:

- open multiple windows with a few tabs each in Firefox, make sure the Firefox is setup to restore the session
- close Firefox
- logout
- login
- open Firefox again

The problem: the ordering of restored Firefox windows is randomized in the task manager (although their position on the screen is preserved)
Preferred behavior: the ordering of restored windows in the task manager to be in the order they were previous to closing

This was lately working with no problems, even with dozens of windows open containing hundreds of tabs. It was an intermittent problem observed in previous 5.x versions of Plasma but seemed to have gotten fixed lately. However, with latest Plasma (5.13.2, and possibly 5.13.1 too) it appeared again, so I guess it is some kind of a regression.
I have previously observed the same problem with Chromium, so I'm not sure if it has anything to do with GTK-based applications.
For completeness sake, this also seemed to coincide with the update to Firefox 61 (or perhaps to one of the latest revisions of Firefox 60) if that is of any help.
Comment 1 Eike Hein 2018-07-11 16:06:27 UTC
There's no code present to remember or restore any positions. If sorting is set to e.g. alphabetic (the default) it's, well, alphabetic. If it's set to Manual, new windows are appended in the order they are opened. So it's up to the application to reopen its windows in the right order.