Bug 369130 - Windows are repositioned incorrectly when vertically-arranged second screen is unplugged or turns off on its own
Summary: Windows are repositioned incorrectly when vertically-arranged second screen i...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.27.7
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-21 02:03 UTC by dbacc
Modified: 2023-09-06 10:53 UTC (History)
2 users (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 dbacc 2016-09-21 02:03:21 UTC
I have a setup with two monitors operating in different resolutions, one of them is in vertical mode (rotate left). 
Most of the times , when I return to my session after it got locked because of inactivity, some of the windows that were placed on screen one,  are suddenly on screen two.

This behavior is very ugly, since the shape of the windows changes enormously (non-vertical to vertical).

I'm going to add some more info as soon as I can find some pattern.

Reproducible: Sometimes

Steps to Reproduce:
1. open several windows (in a certain monitor setup?!)
2. lock your session
3. unlock your session

Actual Results:  
Windows on monitor 1 are placed on monitor 2

Expected Results:  
Windows stay where they were before
Comment 1 Thomas Lübking 2016-09-21 06:06:44 UTC
One (or both) of the monitors will go to deep sleep or the kscreen daemon detaches them, the workspace shrinks, kwin keeps them in sight but when the screen gets re-added doesn't see requirement to reposition them again. - geometry.cpp, but your should rather see to prevent "locked because of inactivity" from altering the screen layout. That would be powerdevil or kscreen (ie. not in kwin)
Comment 2 Nate Graham 2021-10-06 19:23:23 UTC
*** Bug 429678 has been marked as a duplicate of this bug. ***
Comment 3 David Edmundson 2023-09-06 10:38:50 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.
Comment 4 Riccardo Robecchi 2023-09-06 10:53:09 UTC
Just tested this, it looks like windows are repositioned on the correct screen upon reattach.
Comment 5 Riccardo Robecchi 2023-09-06 10:53:52 UTC
I selected the wrong status with t he previous message. Sorry for the email spam!