Bug 505617 - On Wayland, when maximizing Firefox in second screen, then unplugging monitor during sleep, Firefox remains off-screen
Summary: On Wayland, when maximizing Firefox in second screen, then unplugging monitor...
Status: RESOLVED DUPLICATE of bug 479694
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: 6.3.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-15 05:37 UTC by nyanpasu64
Modified: 2025-06-16 18:42 UTC (History)
1 user (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 nyanpasu64 2025-06-15 05:37:24 UTC
SUMMARY
If I start a Plasma Wayland session, maximize Firefox on a second screen, sleep the computer, and disconnect the second monitor while asleep, it remains off-screen after I wake and cannot be moved on-screen.

STEPS TO REPRODUCE
1. Start a Plasma Wayland session. This does not happen on X11.
2. Maximize Firefox on a second screen. (about:support says the Window Protocol is Wayland.)
  a. I don't know if it's *necessary*, but the second screen was non-primary and to the right of the primary screen.
3. Sleep the system.
4. Disconnect the second monitor before waking the system.

This bug does not reproduce with Konsole (Wayland), or Vesktop (unsure if X11 or Wayland).

OBSERVED RESULT
Firefox is not visible on-screen. IIRC another program is focused. If I try to click the task tray to minimize Firefox, it zooms to the bottom taskbar from off-screen. I cannot use Super+Shift+arrow to move monitors, or Super+arrow to tile within the single remaining monitor. If I right-click the tray icon and click More -> Move, I can move the cursor with mouse or arrow keys, but the window does not move.

EXPECTED RESULT
Firefox is interactable, and probably visible (possibly maximized) on the remaining screen (the new primary monitor if there are multiple left?).

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.9-300.fc42.x86_64 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Intel® HD Graphics 4000
Manufacturer: M&A Technology
Product Name: DB75EN__

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-06-16 18:42:20 UTC

*** This bug has been marked as a duplicate of bug 479694 ***