Bug 465050 - Desktop containments get misplaced on multimonitor setup
Summary: Desktop containments get misplaced on multimonitor setup
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop Containment (show other bugs)
Version: master
Platform: Other Linux
: VHI normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2023-01-30 19:06 UTC by Aleix Pol
Modified: 2023-05-27 03:45 UTC (History)
5 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 Aleix Pol 2023-01-30 19:06:15 UTC
After a while (maybe after dis/connecting displays?), the wallpapers I see get swapped.

Interestingly, it doesn't happen with panels or other components.

Looking at the KWin console I see the following geometries: 0,0 1200x1400 for screen 1 and 2560,0 1200x1920 on screen 0.

This is the output as reported by "kscreen-doctor -o":
Output: 1 DP-2 enabled connected priority 2 DisplayPort Modes: 0:1920x1200@60*! 1:1920x1080@60 2:1600x1200@60 3:1680x1050@60 4:1280x1024@75 5:1280x1024@60 6:1440x900@60 7:1280x800@60 8:1152x864@75 9:1280x720@60 10:1024x768@75 11:1024x768@60 12:800x600@75 13:800x600@60 14:640x480@75 15:640x480@60 16:720x400@70 17:1600x1200@60 18:1280x1024@60 19:1024x768@60 20:1280x800@60 21:1920x1080@60 22:1600x900@60 23:1368x768@60 24:1280x720@60 Geometry: 2560,0 1200x1920 Scale: 1 Rotation: 8 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 2 DP-1 enabled connected priority 1 DisplayPort Modes: 0:3840x2160@60*! 1:3840x2160@30 2:2560x1440@60 3:1920x1200@60 4:1920x1080@60 5:1920x1080@60 6:1920x1080@60 7:1600x1200@60 8:1680x1050@60 9:1600x900@60 10:1280x1024@60 11:1440x900@60 12:1280x800@60 13:1280x720@60 14:1280x720@60 15:1280x720@60 16:1024x768@60 17:800x600@60 18:720x480@60 19:720x480@60 20:640x480@60 21:640x480@60 22:640x480@60 23:1600x1200@60 24:1280x1024@60 25:1024x768@60 26:2560x1600@60 27:1920x1200@60 28:3200x1800@60 29:2880x1620@60 30:2560x1440@60 31:1920x1080@60 32:1600x900@60 33:1368x768@60 34:1280x720@60 Geometry: 0,0 2560x1440 Scale: 1.5 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Comment 1 Fushan Wen 2023-01-31 07:26:12 UTC
X11 or Wayland?
Comment 2 Marco Martin 2023-01-31 14:17:32 UTC
wayland
Comment 3 Marco Martin 2023-01-31 14:20:15 UTC
what's the output of kscreendoctor -o *before* the problem happens?
Comment 4 Aleix Pol 2023-01-31 15:11:52 UTC
Here's the screenshot, it doesn't fit bugzilla:
https://proli.net/meu/kde/Screenshot_20230130_200005.png
Comment 5 Nate Graham 2023-02-01 14:51:30 UTC
Really just the wallpapers? Or the whole desktop containment including icons and widgets too?
Comment 6 Aleix Pol 2023-02-25 17:35:25 UTC
Here's two screenshots with the extra information. It shows that both desktop view windows think they're in the other's monitor. #drat

https://proli.net/meu/kde/Screenshot_20230225_180933.png
https://proli.net/meu/kde/Screenshot_20230225_180859.png
Comment 7 Aleix Pol 2023-02-25 17:37:54 UTC
> Really just the wallpapers? Or the whole desktop containment including icons and widgets too?

Yes, it's the whole DesktopView, I'm sure. Right click on the black (transparent on the screenshots) region doesn't respond as there's no window underneath.
Comment 8 Aleix Pol 2023-02-25 17:38:33 UTC
This is kscreen-doctor _after_ this has happened.

$ kscreen-doctor -o
 kscreen.kwayland: KScreen::WaylandConfig::addOutput adding output 47
 kscreen.kwayland: KScreen::WaylandConfig::addOutput adding output 62
 kscreen.kwayland: KScreen::WaylandBackend::WaylandBackend Loading Wayland backend.
Output: 1 DP-2 enabled connected priority 2 DisplayPort Modes: 0:1920x1200@60*! 1:1920x1080@60 2:1600x1200@60 3:1680x1050@60 4:1280x1024@75 5:1280x1024@60 6:1440x900@60 7:1280x800@60 8:1152x864@75 9:1280x720@60 10:1024x768@75 11:1024x768@60 12:800x600@75 13:800x600@60 14:640x480@75 15:640x480@60 16:720x400@70 17:1600x1200@60 18:1280x1024@60 19:1024x768@60 20:1280x800@60 21:1920x1080@60 22:1600x900@60 23:1368x768@60 24:1280x720@60 Geometry: 2560,0 1200x1920 Scale: 1 Rotation: 8 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 2 DP-1 enabled connected priority 1 DisplayPort Modes: 0:3840x2160@60*! 1:3840x2160@30 2:2560x1440@60 3:1920x1200@60 4:1920x1080@60 5:1920x1080@60 6:1920x1080@60 7:1600x1200@60 8:1680x1050@60 9:1600x900@60 10:1280x1024@60 11:1440x900@60 12:1280x800@60 13:1280x720@60 14:1280x720@60 15:1280x720@60 16:1024x768@60 17:800x600@60 18:720x480@60 19:720x480@60 20:640x480@60 21:640x480@60 22:640x480@60 23:1600x1200@60 24:1280x1024@60 25:1024x768@60 26:2560x1600@60 27:1920x1200@60 28:3200x1800@60 29:2880x1620@60 30:2560x1440@60 31:1920x1080@60 32:1600x900@60 33:1368x768@60 34:1280x720@60 Geometry: 0,0 2560x1440 Scale: 1.5 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Comment 9 Aleix Pol 2023-02-25 17:47:17 UTC
Right after restarting:
$ kscreen-doctor -o
 kscreen.kwayland: KScreen::WaylandConfig::addOutput adding output 46
 kscreen.kwayland: KScreen::WaylandConfig::addOutput adding output 47
 kscreen.kwayland: KScreen::WaylandBackend::WaylandBackend Loading Wayland backend.
Output: 1 DP-1 enabled connected priority 1 DisplayPort Modes: 0:3840x2160@60*! 1:3840x2160@30 2:2560x1440@60 3:1920x1200@60 4:1920x1080@60 5:1920x1080@60 6:1920x1080@60 7:1600x1200@60 8:1680x1050@60 9:1600x900@60 10:1280x1024@60 11:1440x900@60 12:1280x800@60 13:1280x720@60 14:1280x720@60 15:1280x720@60 16:1024x768@60 17:800x600@60 18:720x480@60 19:720x480@60 20:640x480@60 21:640x480@60 22:640x480@60 23:1600x1200@60 24:1280x1024@60 25:1024x768@60 26:2560x1600@60 27:1920x1200@60 28:3200x1800@60 29:2880x1620@60 30:2560x1440@60 31:1920x1080@60 32:1600x900@60 33:1368x768@60 34:1280x720@60 Geometry: 0,0 2560x1440 Scale: 1.5 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: unknown
Output: 2 DP-2 enabled connected priority 2 DisplayPort Modes: 0:1920x1200@60*! 1:1920x1080@60 2:1600x1200@60 3:1680x1050@60 4:1280x1024@75 5:1280x1024@60 6:1440x900@60 7:1280x800@60 8:1152x864@75 9:1280x720@60 10:1024x768@75 11:1024x768@60 12:800x600@75 13:800x600@60 14:640x480@75 15:640x480@60 16:720x400@70 17:1600x1200@60 18:1280x1024@60 19:1024x768@60 20:1280x800@60 21:1920x1080@60 22:1600x900@60 23:1368x768@60 24:1280x720@60 Geometry: 2560,0 1200x1920 Scale: 1 Rotation: 8 Overscan: 0 Vrr: incapable RgbRange: unknown

I guess the interesting thing would be to see how the order of outputs changes as it goes to sleep/dpms and then wakes up. I'm inclined to think that this is probably a bug in kwin_wayland and not plasmashell...
Comment 10 Nate Graham 2023-02-27 16:39:14 UTC
The actual data for each output looks correct, but their order is different. This doesn't seem like it should confuse Plasma.
Comment 11 Nate Graham 2023-04-15 03:20:27 UTC
It is still happening with 5.27.4?
Comment 12 Nate Graham 2023-04-27 16:28:05 UTC
Gentle ping. Can you test again with Plasma 5.27.4?
Comment 13 Bug Janitor Service 2023-05-12 03:46:07 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 14 Bug Janitor Service 2023-05-27 03:45:43 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!