Bug 499140 - Closing Kickoff/launcher menu doesn't return focus correctly on multi-screen setup
Summary: Closing Kickoff/launcher menu doesn't return focus correctly on multi-screen ...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: 6.2.4
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
: 499367 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-01-25 18:42 UTC by Anton
Modified: 2026-01-23 09:24 UTC (History)
6 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 Anton 2025-01-25 18:42:45 UTC
SUMMARY
On a multi-display config, closing the main KDE menu with Super or Esc does not return focus to the last focused window if that window is on the secondary display. If it's on the primary display (where the main panel is), focus is returned correctly.

STEPS TO REPRODUCE
Can be reproduced with e.g. 2 terminal windows.
1. Position window A on the secondary and window B on the primary display.
2. Verify focus in window A by typing something in it.
3. Press Super key twice or Super plus Esc, resulting in the main menu opening and immediately closing.

OBSERVED RESULT
The focus returns to window B, not A.

EXPECTED RESULT
The focus should return to window A.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian testing (12, trixie)
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
The real-life use case leading to this discovery: having the panel auto-hiding on the main display, working at the secondary display, then checking something on the panel (weather/clock/etc.) with a quick Super-Super double-press, and getting a completely different window taking input from that moment on. The bug reproduces on an always-visible panel, too.
Comment 1 Nate Graham 2025-05-14 20:07:17 UTC
I can reproduce this issue. Focus moves over to the last-focused window *on the screen where Kickoff opened and closed*, not the last-focused window on any screen.

I *think* this is a KWin issue; moving there.
Comment 2 Zamundaaa 2026-01-19 20:17:49 UTC
*** Bug 499367 has been marked as a duplicate of this bug. ***
Comment 3 Miroslav Jarý 2026-01-23 09:24:46 UTC
Can confirm this is still an issue in Plasma 6.5.5

Operating System: Arch Linux 
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.1
Kernel Version: 6.18.5-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × 13th Gen Intel® Core™ i5-13420H
Memory: 32 GiB of RAM (31,1 GiB usable)
Graphics Processor 1: Mesa Intel® Graphics
Graphics Processor 2: NVIDIA GeForce RTX 4050 Laptop GPU/PCIe/SSE2
Manufacturer: LENOVO
Product Name: 82XV
System Version: LOQ 15IRH8