Bug 512313

Summary: Focus issues for PIP wayland protocol
Product: [Plasma] kwin Reporter: Oliver Schramm <oliver.schramm97>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.5.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screencapture of the issue

Description Oliver Schramm 2025-11-18 21:31:51 UTC
Created attachment 186934 [details]
Screencapture of the issue

SUMMARY
When moving the PIP window around with the new PIP protocol for wayland, the parent window has some focus issues.

STEPS TO REPRODUCE
1. Set the "KWIN_WAYLAND_SUPPORT_XX_PIP_V1" environment variable to 1
2. Make sure "widget.wayland.experimental.pip.enabled" is enabled in Firefox
3. Move the PIP window around

OBSERVED RESULT
It seems like when clicking *below* the pip window, the pip window will always be focused and the parent window cannot get focus.
When clicking *above* the pip window, the parent window doesn't get hover, but can receive focus again after a single click.
Also, the cursor can look weird.

EXPECTED RESULT
The parent window should be not affected, and you should be able to hover over buttons.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.20
Qt Version: 6.10

ADDITIONAL INFORMATION
The workaround is to click the pip window once.