Bug 489977

Summary: XWayland windows are raised when getting the focus, which they shouldn't
Product: [Plasma] kwin Reporter: sulfinu
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kde, kdedev
Priority: LO    
Version First Reported In: 6.1.2   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=460318
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description sulfinu 2024-07-09 14:51:12 UTC
SUMMARY
If the window activation policy is set to "Focus follows mouse (mouse precedence)" (I suspect that any other mouse-decided focus policy would do) and the window raising configured to "Click raises active window", XWayland windows do not just take the focus when being hovered with the mouse pointer, but they are also RAISED.

This wrong behaviour confuses effects like "slide windows back when another window is raised" and renders both these XWayland windows and other windows unusable. I get inactive windows covering active windows that cannot be raised.

Native Wayland windows behave as expected.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.7-gentoo (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon Graphics
Comment 1 sulfinu 2024-07-09 15:15:02 UTC
I should add that the inappropriate raising takes place when both the window losing focus and window gaining focus are XWayland windows.