Bug 512313 - Focus issues for PIP wayland protocol
Summary: Focus issues for PIP wayland protocol
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.5.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-18 21:31 UTC by Oliver Schramm
Modified: 2025-11-18 21:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screencapture of the issue (3.42 MB, video/mp4)
2025-11-18 21:31 UTC, Oliver Schramm
Details

Note You need to log in before you can comment on or make changes to this bug.
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.