[wayland] tooltip doesn't appear near the bottom of screen
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: lilydjwg, Assigned: stransky)
References
(Blocks 2 open bugs)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0
Steps to reproduce:
- maximize firefox's window
- open https://en.wikipedia.org/wiki/Main_Page
- hover on the language links at the left bottom
Actual results:
It flickers once but no tooltip is shown. It seems that it tries to show but there is no space and then it disappears soon.
Expected results:
The tooltip should find another place to appear.
It happens on all Wayland sessions of GNOME, KDE and wayfire (wlroots). On Xwayland it doesn't have this issue.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Yes, I can reproduce that too.
Assignee | ||
Comment 3•2 years ago
|
||
It's because we create a tooltip under cursor (after move-to-rect), it gets "OnEnterNotifyEvent" and we close the tooltip again.
This is a lot more noticeable now that hover tooltips have been recently added to the picture-in-picture playback controls (Bug 1772339).
Assignee | ||
Comment 5•2 years ago
|
||
We don't want to get enter/leave events for tooltip so disable it.
Updated•2 years ago
|
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D158565
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/55926acc8de0 [Wayland] Don't set input region to tooltips r=emilio https://hg.mozilla.org/integration/autoland/rev/7882b9b0684c [Wayland] Update move-to-rect anchor for tooltips according to nsMenuPopupFrame::SetPopupPosition()/X11 r=emilio
Comment 8•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/55926acc8de0
https://hg.mozilla.org/mozilla-central/rev/7882b9b0684c
Updated•2 years ago
|
Comment 10•2 years ago
|
||
Using the steps in comment 0, this issue could be reproduced in Release v106.0.1 on Ubuntu 22, after force-opening it with Wayland Window Protocol on gnome Desktop Environment. This issue only occurs when the button or link that also has a tooltip is much too close to the bottom of the screen.
I've confirmed the fix on Beta v107.0b4 and Nightly v108.0a1.
Description
•