Bug 443172

Summary: Firefox leaves sticky/persistent tooltips/popups
Product: [Plasma] kwin Reporter: ratijas <me>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: bugseforuns, nate
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Sticky tooltip

Description ratijas 2021-09-30 21:33:39 UTC
SUMMARY
Platform popup windows from Firefox are sticky, and once one such popup shows up and you switched to another app or virtual desktop, it won't go away automatically until you hover over it, or move your mouse over any Firefox window again.

STEPS TO REPRODUCE
1. Open Firefox window
2. Hover over any item with a tooltip, such as: tabs, toolbar buttons etc.
3. Switch to another app or desktop, such that no Firefox windows are directly under the cursor anymore.

OBSERVED RESULT
Popup/tooltip just stays opened forever, until you either "touch" it with a cursor (like hover, but no need to wait), or move the cursor directly over any Firefox window. In my opinion these two conditions are just one "hover mouse directly over any Firefox stuff".

EXPECTED RESULT
Popup should close automatically when switched to another app.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2
Kernel Version: 5.14.8-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970M/PCIe/SSE2

ADDITIONAL INFORMATION
This is not affected by turning compositing on/off. I have no idea what's the source of this bug, or where to report it.
Comment 1 ratijas 2021-09-30 21:39:10 UTC
Created attachment 142042 [details]
Sticky tooltip
Comment 2 Nate Graham 2021-09-30 22:06:18 UTC
I've seen this in the past on X11, but it's disappeared ever since I moved to Wayland full-time. Not sure it's a KWin issue.

Can you reproduce the issue in a Plasma Wayland session?
Comment 3 ratijas 2021-09-30 22:22:31 UTC
Never really tried wayland before; but seems like I'm left with no choice this time around...
Comment 4 Patrick Silva 2021-10-01 02:06:26 UTC
I have a similar bug on neon unstable with Opera browser running on Xwayland.
Sometimes a tooltip from Opera remains on the screen even when Opera window is no longer focused. But I think Opera bug is related to Xwayland because
it also occurs on Wayland session of Gnome.

Same bug with tooltip from VLC player on Gnome Wayland:
https://code.videolan.org/videolan/vlc/-/issues/22965
Comment 5 Vlad Zahorodnii 2021-10-01 06:16:31 UTC
(In reply to Nate Graham from comment #2)
> I've seen this in the past on X11, but it's disappeared ever since I moved
> to Wayland full-time. Not sure it's a KWin issue.
On Wayland, popups are placed on the current virtual desktop, unlike override redirect windows, which are rendered on all virtual desktops.

On X11, it's cantfix from wm point of view.
Comment 6 ratijas 2021-10-04 14:11:13 UTC
I couldn't make Wayland session work; it has something to do with EGLStreams and my NVIDIA GPU. Maybe someday later... but until then ¯\_(ツ)_/¯
Comment 7 Bug Janitor Service 2021-10-19 04:35:44 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2021-11-03 04:35:28 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!