Bug 459618 - Accept-focus passes through clicks to inactive windows
Summary: Accept-focus passes through clicks to inactive windows
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: rules (other bugs)
Version First Reported In: 5.25.5
Platform: NixOS Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2022-09-24 19:38 UTC by ornx
Modified: 2025-06-24 03:47 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 ornx 2022-09-24 19:38:09 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

Specifically, windows with the accept-focus property set to false, and which are inactive, still receive mouse events. More generally, I am unable to use window rules to prevent a window from receiving any mouse events. The overall task I am trying to accomplish is to have a window with transparency overlaid on top of another window (with the "keep above others" window option), and be able to use the lower window without interacting with the semi-transparent window above it. This is useful for cases where there is not much screen real-estate but where you want to do several things at once, e.g. draw from a reference or watch a video while doing something else.

STEPS TO REPRODUCE
1. Set a window rule to force accept-focus to false.
2. Click on the window.

OBSERVED RESULT
The window received a mouse event even though it was not focused.

EXPECTED RESULT
The window did not receive a mouse event.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS 22.11
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
I am using Plasma under Wayland. I have confirmed that this happens with native Wayland windows as well as Xwayland windows.

This bug seems related to https://bugs.kde.org/show_bug.cgi?id=283474 - that patch may have made it so that there is no longer a way to prevent a window from receiving click events.
Comment 1 John Kizer 2025-05-25 04:44:16 UTC
Thank you for the bug report - unfortunately, we have not able to get to it yet. Can we ask you to please check if this is still an issue with Plasma 6.3.5?
Comment 2 Bug Janitor Service 2025-06-09 03:47:22 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2025-06-24 03:47:48 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.