Bug 493532

Summary: hover on decoration doesn't activate window (focus follows mouse)
Product: [Plasma] kwin Reporter: dirkjan <kde>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: nate
Priority: NOR    
Version First Reported In: 6.1.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description dirkjan 2024-09-23 13:51:34 UTC
SUMMARY

Using focus follows mouse, you see focus move to a target window when you hover over that window with the cursor for a specified delay.
I noticed that this only applies to the actual content window. It does not happen if you hover over that target windows decorations.

STEPS TO REPRODUCE
1.  make sure focus follows mouse is enabled (kcm window behavior)
2. have two windows. Ensure the cursor is inside window 1. Notice how window 1 has focus.
3. Move the cursor to the DECORATIONS of window 2. Say, over the title of the window. You may need to position the windows smartly or increase the delay (same kcm) to ensure you don't get activation on the actual window.

OBSERVED RESULT

Nothing happens. Window 1 is keeping focus.

EXPECTED RESULT

Focus should move to window 2 because the decorations you are hovering over should be the same as the actual window.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: yes
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6 
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Wayland.