Bug 500904 - On login, opening a window on multi-monitor setups without moving the mouse will open the window on the wrong display
Summary: On login, opening a window on multi-monitor setups without moving the mouse w...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: 6.3.2
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2025-03-01 14:41 UTC by Eamonn Rea
Modified: 2025-08-11 04:06 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eamonn Rea 2025-03-01 14:41:22 UTC
SUMMARY
If there is more than one display connected, opening a window on login without having moved the mouse at all on login before, the window will open on the wrong display. This can be replicated by logging in without moving a mouse, and using a shortcut (such as Ctrl+Alt+T) to open a window (such as Konsole).

On my setup, pressing Ctrl+Alt+T to open Konsole in this scenario opens the window on my top-lost display instead of the display that the cursor is on, which is the center of my primary display (bottom left on my physical setup).

This does not occur if only one display is present. 

STEPS TO REPRODUCE
1. Login without moving the mouse.
2. Open a window, such as via a keyboard shortcut.
3. The window will open on the wrong display.

OBSERVED RESULT
Windows open on the wrong display when opened without moving the mouse since logging in.

EXPECTED RESULT
Windows should open on the display the cursor is on, even if the mouse has never been moved.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Unsure if this occurs on X11.
Comment 1 Zamundaaa 2025-03-05 16:04:39 UTC
The active screen is probably changed by plasmashell putting windows there. I don't know the best way to ensure that this doesn't happen right now, but it's at least something to look into.
Comment 2 Christopher Smith 2025-08-11 04:06:52 UTC
Having the same problem. Best way to replicate this is to have no windows open on any desktop and open KRunner. KRunner would only show up on the correct monitor if the desktop was clicked on prior to opening it, otherwise it falls back to the secondary monitor. Monitor positioning doesn't seem to matter either.