Bug 421287

Summary: After Firefox CSD window running on Xwayland to be maximized, mouse input doesn't work as expected on the area above the webpage
Product: [Plasma] kwin Reporter: Patrick Silva <bugseforuns>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: magiblot
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2020-05-10 15:15:25 UTC
STEPS TO REPRODUCE
1. start Wayland session
2. make sure Firefox is using CSD and the menu bar of Firefox is enabled
3. open Firefox CSD
4. maximize Firefox window (if Firefox window is already maximized on opening, unmaximize it and maximize it again)
5. right-click or click on something above the webpage, like minimize/maximize/close buttons in the upper right corner, url field, the hamburger button, "+" (new tab) button, entries of the menu bar (file, edit, view, etc), "x" button of a tab, etc.

OBSERVED RESULT
random and extremely annoying problems: sometimes nothing happens when I click on some entries of the menu bar, sometimes nothing happens when I click on minimize button, sometimes hamburger menu opens when I click on restore/unmaximize button, sometimes I can't close Firefox window by click on "X" button in the upper right corner, sometimes hamburger menu does not open or opens but does not close when I click on the hamburger button again, sometimes nothing happens when I right-click inside the url field, sometimes hamburger menu opens when I click on "+" (new tab) button, sometimes nothing happens when I click on "x" button of a tab, sometimes Firefox window is minimized when I click on "restore" button.

All these problems disappear after I minimize and unminimize Firefox window.

EXPECTED RESULT
mouse input should always work correctly.

SOFTWARE/OS VERSIONS
Firefox 76
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.18.80
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2
Comment 1 magiblot 2020-05-10 15:52:30 UTC
Is this the same as https://gitlab.com/kwinft/kwinft/-/issues/35?
Comment 2 Vlad Zahorodnii 2020-05-12 06:08:10 UTC
iirc, we had a similar bug report some time ago but I can't find it. Since you're able to reproduce this annoying bug, could you please check whether there are problems with input when Firefox is using SSD(server-side decorations)?
Comment 3 Patrick Silva 2020-05-12 09:02:49 UTC
I think that the similar bug mentioned by you is bug 417444.
Cannot reproduce with SSD.
Comment 4 Patrick Silva 2020-09-18 21:59:40 UTC
cannot reproduce with Plasma 5.20 beta + Firefox CSD 80.0.1.
No problem on neon unstable too.

Operating System: Arch Linux
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Comment 5 Vlad Zahorodnii 2020-09-21 14:08:58 UTC
I made some input transformation matrix related changes in 5.20. Maybe they fixed the bug somehow.