Bug 484903 - Windows are not shown after unplugging external monitor
Summary: Windows are not shown after unplugging external monitor
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 6.0.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2024-04-02 05:55 UTC by Jiri Slaby
Modified: 2024-09-05 03:29 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Slaby 2024-04-02 05:55:39 UTC
SUMMARY
When I unplug an external monitor where I have konsoles open, the konsoles look like they are still on the second monitor. That is, I can activate/minimize them through the task panel, but they are not shown anywhere.

This is new in plasma 6. It used to work fine with 5.

Also for example Thunderbird is moved to the primary monitor properly.

STEPS TO REPRODUCE
1. Plug in external monitor and let it extend the workspace (i.e. not clone)
2. Move there some konsoles
3. Unplug the monitor

OBSERVED RESULT
konsoles are not visible.

EXPECTED RESULT
konsole should be visible.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240326
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-3.gd922afa-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics
Memory: 58.4 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 21K6S0A006
System Version: ThinkPad P14s Gen 4
Comment 1 malvery 2024-08-30 07:43:17 UTC
Same problem here on plasma 6.1.4. After unplug external monitor some windows gets missing. This windows still persists on the taskbar as opened, you can minimize and unminimize it, but missed window not shown. Only application restart helps. Usually it's a firefox or thunderbird window. Before unplugging monitor, 'Switch to external screen" is selected in kscreen.
Comment 2 Andrew M 2024-09-05 03:29:36 UTC
I can easily reproduce this with my laptop, a docking station and 2 monitors.
Using Arch package kwin-6.1.4

1. With the lid closed have 2 monitors configured to be on.
2. With the lid opened disable the 2 external monitors, only having the laptop built-in on.
3. Close the lid and let it configure to 2 external, no internal.
3. Place Firefox on the external display.
4. Open the lid and let it reconfigure built-in only.

Firefox seems to reliably stick to the position where the external monitor would have been. Other windows have behaved correctly and been moved to the single built-in monitor.
Minimising and restoring using the Task Manager on the panel sometimes will bring it back, but sometimes will not and only closing and restarting Firefox will get it back on the correct display.