Bug 507021 - XWayland app on other monitor not focused properly after Overview, IME shows at top-left
Summary: XWayland app on other monitor not focused properly after Overview, IME shows ...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (other bugs)
Version First Reported In: 6.4.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen, wayland-only
Depends on:
Blocks:
 
Reported: 2025-07-14 10:27 UTC by duandongyi2019
Modified: 2025-08-28 16:49 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 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.