Bug 507021

Summary: XWayland app on other monitor not focused properly after Overview, IME shows at top-left
Product: [Plasma] kwin Reporter: duandongyi2019
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: duandongyi2019, nate
Priority: NOR Keywords: multiscreen, wayland-only
Version First Reported In: 6.4.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description duandongyi2019 2025-07-14 10:27:27 UTC
SUMMARY
When I have two screens (screen A and screen B), and the current focus is on screen B, triggering the Overview effect and then clicking on an XWayland application window on screen A does not correctly transfer input focus to that application.

As a result, input methods do not behave correctly: the input method panel (preedit text or candidate window) appears in the top-left corner of screen A, instead of appearing near the text cursor inside the application. Additionally, keyboard input may not be properly delivered to the application.

STEPS TO REPRODUCE
1. Set up two monitors (A and B).
2. Focus a window on screen B.
3. Trigger the Overview effect via hotkey.
4. Click on an XWayland application window located on screen A.
5. Try to use an input method (e.g., fcitx5).

OBSERVED RESULT
The application does not receive proper input focus.
The input method panel appears at the top-left corner of screen A.

EXPECTED RESULT
The clicked XWayland application should receive input focus.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux 
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × 13th Gen Intel® Core™ i7-13620H
Memory: 16 GiB of RAM (15.3 GiB usable)
Graphics Processor: Mesa Intel® Graphics


ADDITIONAL INFORMATION
Let me know if you need anything else
Comment 1 duandongyi2019 2025-07-14 10:42:57 UTC
Note: To reproduce this issue, the application on screen B must have received input focus previously by typing some text before triggering the Overview.