Bug 482608 - Windows on external monitor are shifted up by a large amount when closing laptop
Summary: Windows on external monitor are shifted up by a large amount when closing laptop
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 6.0.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
: 482895 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-06 23:07 UTC by Anon
Modified: 2024-07-27 03:46 UTC (History)
4 users (show)

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


Attachments
Laptop screen open, looking good (2.20 MB, image/png)
2024-03-09 03:55 UTC, Anon
Details
Laptop screen closed, window moves (2.51 MB, image/png)
2024-03-09 03:56 UTC, Anon
Details
Display properties in X11, correct (281.31 KB, image/png)
2024-03-09 03:56 UTC, Anon
Details
Display properties in Wayland, primary screen is wrong (362.27 KB, image/png)
2024-03-09 03:57 UTC, Anon
Details
Two screens, Dolphin on laptop screen (2.62 MB, image/png)
2024-03-09 04:08 UTC, Anon
Details
Closing laptop screen moves dolphin too far up and moves other window (3.48 MB, image/png)
2024-03-09 04:12 UTC, Anon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anon 2024-03-06 23:07:50 UTC
SUMMARY
***
When using an external monitor with a laptop, closing the laptop moves the windows on the external monitor up past the top of the visible screen. This hides half the content, and the title bars, so moving the windows back to their expected position is difficult. (it requires using the context menu in the panel)
***

STEPS TO REPRODUCE
1. Connect external monitor to laptop and configure layout
2. Use the machine for any length of time with the laptop open
3. Close the laptop

OBSERVED RESULT

The windows on the external monitor are moved up past the top of the screen, hiding half their content and title bars.

EXPECTED RESULT

The windows do not move.

SOFTWARE/OS VERSIONS

Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.5.0-21-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
Memory: 46.7 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Manufacturer: LENOVO
Product Name: 20RYS0M100
System Version: ThinkPad T490

ADDITIONAL INFORMATION

This issue persists after reboots. It happens whether the laptop is on battery or power. It did not happen in the last Plasma 5.x version.
Comment 1 Nate Graham 2024-03-07 19:29:32 UTC
Does it happen on Wayland too, or just X11?
Comment 2 Anon 2024-03-07 23:14:53 UTC
(In reply to Nate Graham from comment #1)
> Does it happen on Wayland too, or just X11?

Just Wayland.
Comment 3 Nate Graham 2024-03-08 21:26:46 UTC
Interesting, cannot reproduce when I use the same setup.

Can you attach a screenshot of the Display & Monitor page in System Settings that shows your screen layout? Maybe that's a factor, and it only affects certain layouts.
Comment 4 Anon 2024-03-09 03:55:15 UTC
Created attachment 166764 [details]
Laptop screen open, looking good

Laptop is the bottom screen.
Comment 5 Anon 2024-03-09 03:56:02 UTC
Created attachment 166765 [details]
Laptop screen closed, window moves
Comment 6 Anon 2024-03-09 03:56:32 UTC
Created attachment 166766 [details]
Display properties in X11, correct
Comment 7 Anon 2024-03-09 03:57:01 UTC
Created attachment 166767 [details]
Display properties in Wayland, primary screen is wrong
Comment 8 Anon 2024-03-09 04:08:06 UTC
(In reply to Nate Graham from comment #3)
> Interesting, cannot reproduce when I use the same setup.
> 
> Can you attach a screenshot of the Display & Monitor page in System Settings
> that shows your screen layout? Maybe that's a factor, and it only affects
> certain layouts.

I've uploaded screenshots of the two screens with Dolphin open on the external monitor, first with the laptop screen open, next with it closed. In the closed scenario, Dolphin has moved significantly.

Of note:

* Before 6.0.0 I only used X
* In X the laptop screen is set as primary
* In the Wayland session, for some reason the external monitor set itself as primary (this explains another bug I filed where the panels are on the wrong screen https://bugs.kde.org/show_bug.cgi?id=482618 but I did not set the external screen as primary, a fresh unused Wayland session after the 6.0.0 update did that)
* The mouse pointer moves across screens as expected (so the physical layout of the screens and the logical layout in the settings are in agreement and correct)
* When I put the Dolphin window on the laptop screen, and close the laptop screen, Dolphin moves up to the external monitor (good) but pushed way up and cut off (not good). Another window that was open on the external monitor also moves (not good).
Comment 9 Anon 2024-03-09 04:08:47 UTC
Created attachment 166768 [details]
Two screens, Dolphin on laptop screen
Comment 10 Anon 2024-03-09 04:12:44 UTC
Created attachment 166769 [details]
Closing laptop screen moves dolphin too far up and moves other window
Comment 11 Nate Graham 2024-03-10 22:49:46 UTC
Thanks. I'll try to reproduce this tomorrow.
Comment 12 Nate Graham 2024-03-11 15:38:24 UTC
*** Bug 482895 has been marked as a duplicate of this bug. ***
Comment 13 Blazer Silving 2024-06-27 13:44:23 UTC
Hello, I believe this may be fixed as of Kwin 6.0.5.

I also encountered the same issue, but with multi-monitor causing windows to offset after a dpms monitor poweroff, sounds to be similar conditions to a laptop lid activity with external monitor. 

I can't identify a particular commit in the changelogs to confirm, but the offset behavior stopped for me around 6.0.5.
Comment 14 Nate Graham 2024-06-27 17:49:16 UTC
Anon, can you confirm that? Also at this point maybe test 6.1, not 6.0.5.
Comment 15 Bug Janitor Service 2024-07-12 03:47:01 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 16 Bug Janitor Service 2024-07-27 03:46:12 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!