Bug 403322 - In resumed activity windows are maximized
Summary: In resumed activity windows are maximized
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.14.5
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-17 17:53 UTC by Aurelijus
Modified: 2023-08-21 19:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelijus 2019-01-17 17:53:54 UTC
SUMMARY
Starting the activity sometimes ends up with random windows being maximized.

STEPS TO REPRODUCE
1. Stop activity or log out
2. Start activity or log in

OBSERVED RESULT
Some random windows occasionally (re)start maximized. Frequency ~20%.


EXPECTED RESULT
Windows remember their geometry and positions.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 18.10 with 5.14.5
(available in About System)
KDE Plasma Version: 5.14.5
KDE Frameworks Version:  5.52.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
This problem started sometime with 5.13.x, but no earlier than 5.12.x. Since it is around for a while now, I forgot which version was the first exactly.
Comment 1 Aurelijus 2019-01-21 16:37:01 UTC
This happens more frequently if I sync laptop&desktop home dirs.
Comment 2 Martin Flöser 2019-01-22 05:12:26 UTC
If a window is larger than a screen it gets maximized. If you sync different systems you are breaking the restore information.
Comment 3 Aurelijus 2019-01-22 07:48:31 UTC
You obviously misread -> "more frequently" (~60%), i.e., 1 system/setup with steps 1&2 can be affected as well at a lower rate (~20%).

Let me emphasize further details:
1. Windows *ARE NOT* larger than a screen.
2. Bug is *NOT THERE* in KDE 5.11 or earlier.
3. I run ~50+ windows per activity, thus I see a few hitting the bug, which is, in general, rare (per window). People with 2 windows are effectively unaffected.

Is there any way to test what is prompting this?
Comment 4 Martin Flöser 2019-01-22 17:21:03 UTC
First of all: stop syncing the restore information. If the bug persists with correct restore information, than we can look into it in more detail.

So far all I know is that you perform operations which are unsupported and with side effects.
Comment 5 Aurelijus 2019-01-22 17:39:35 UTC
I can probably do it for the sake of testing.

However, how am I suppose to resume work X from PC A with PC B otherwise? The answer "reopen 50 windows" is a bad one.
Comment 6 Aurelijus 2019-02-20 16:21:17 UTC
I made a dedicated VM (virtualbox) to replicate the issue and it can be replicated just fine. Restoring the session is just messed up: windows move around, sometimes get maximized, etc.

In the VM below, konsole and kate are sized and placed in the left corner and the right half of the screen respectively (using window tiling function). Once you start a session, it will be messed up. I have noticed (in the VM) that tiling is more prone to restore problems than a random-sized window somewhere on the screen.

10 GB tar, placed it here:
https://cernbox.cern.ch/index.php/s/Q4M6C6bI4pNL6jg

$ sha512sum kde-debug-vm.tar 
84256ea18e32d30b743d24e3ef0abb5a2a32dbc6f7dd98351f08fd5d9f76e62e5066c43cc82bb63369a2d293c95b07735bca9bbd18f17dcd00c3e8af443a0217  kde-debug-vm.tar

user: debug, password is the same
Comment 7 Aurelijus 2019-02-20 16:22:02 UTC
Forgot to say: the problem is replicated with KDE 5.15.1 as in the VM.
Comment 8 joelsonejr 2023-08-21 19:28:51 UTC
I'm afraid Plasma 5.14.5 is unfortunately no longer eligible for support or maintenance from KDE.
Plasma is a fast-moving project, and bugs in one version are often fixed in the next one. Please update to Plasma 5.27 as soon as your distro offers it to you. If you need support for Plasma 5.14.5, please contact your distro, who bears the responsibility of providing support for older non-LTS releases.
If this issue is still reproducible in either Plasma 5.27 (the current LTS version) or Plasma 5.27.7 (the latest released version), feel free to re-open this bug report.
Thanks for understanding!