Closed Bug 1783437 Opened 3 years ago Closed 3 years ago

[Wayland] Tooltips may not show if there's another popup window opened

Categories

(Core :: Widget: Gtk, defect, P3)

defect

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(4 files)

Tooltips may not show if there's another popup window opened due to wrong popup coordinates or wrong anchor.

  • In order to get tooltip position we need to use gtk_window_get_position() as it cover case when GdkWindow is not placed yet.
  • Use both gdk_window_move()/gdk_window_move() to reset widget position as a workaround for https://gitlab.gnome.org/GNOME/gtk/-/issues/4071.
  • Apply the workaround to tooltips only as it affects only temporary windows.

Move-to-rect fails to position and show a popup when popup anchor is outside of its parent window.
In such case we need to use plain move.

Depends on D153859

Move popup window move-to-rect config (anchor canculation, check if we need it and can use it) to a new method WaylandPopupCheckAndGetAnchor().

Depends on D153860

Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/47ebd9b76062 [Wayland] Use GtkWindow to check and place tooltips r=emilio https://hg.mozilla.org/integration/autoland/rev/c9411a52753e [Wayland] Don't use move-to-rect when popup and its parent are not adjacent r=emilio https://hg.mozilla.org/integration/autoland/rev/b172d1e6cffa [Wayland] Move move-to-rect config to nsWindow::WaylandPopupCheckAndGetAnchor() r=emilio https://hg.mozilla.org/integration/autoland/rev/cafd5d446af8 [Wayland] Make sure we don't use rectangle anchor with zero width/height r=emilio
Regressions: 1795066
No longer regressions: 1795066
Regressions: 1802399
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: