summaryrefslogtreecommitdiff
path: root/mozilla-1661192.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2020-10-01 13:47:13 +0200
committerMartin Stransky <stransky@redhat.com>2020-10-01 13:47:13 +0200
commit5ea2be5465abc0c18650fdc0333b4cc05c51351e (patch)
treeaddbd903c53a48876a827c8dfe346a0a42a6e923 /mozilla-1661192.patch
parentAdded fix for mozbz#1640567, Enable PGO (diff)
downloadlibrewolf-fedora-ff-5ea2be5465abc0c18650fdc0333b4cc05c51351e.tar.gz
librewolf-fedora-ff-5ea2be5465abc0c18650fdc0333b4cc05c51351e.tar.bz2
librewolf-fedora-ff-5ea2be5465abc0c18650fdc0333b4cc05c51351e.zip
Added fix for mozbz#1661192
Diffstat (limited to 'mozilla-1661192.patch')
-rw-r--r--mozilla-1661192.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/mozilla-1661192.patch b/mozilla-1661192.patch
new file mode 100644
index 0000000..fa3cd42
--- /dev/null
+++ b/mozilla-1661192.patch
@@ -0,0 +1,25 @@
+diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
+--- a/widget/gtk/nsWindow.cpp
++++ b/widget/gtk/nsWindow.cpp
+@@ -1600,9 +1600,11 @@
+ #endif
+ }
+
++ bool hasAnchorRect = true;
+ if (anchorRect.width == 0) {
+ LOG((" No anchor rect given, use aPosition for anchor"));
+ anchorRect.SetRect(aPosition->x, aPosition->y, 1, 1);
++ hasAnchorRect = false;
+ }
+ LOG((" anchor x %d y %d width %d height %d (absolute coords)\n",
+ anchorRect.x, anchorRect.y, anchorRect.width, anchorRect.height));
+@@ -1704,7 +1706,7 @@
+ nsPoint cursorOffset(0, 0);
+ #ifdef MOZ_WAYLAND
+ // Offset is already computed to the tooltips
+- if (popupFrame && mPopupType != ePopupTypeTooltip) {
++ if (hasAnchorRect && popupFrame && mPopupType != ePopupTypeTooltip) {
+ nsMargin margin(0, 0, 0, 0);
+ popupFrame->StyleMargin()->GetMargin(margin);
+ switch (popupFrame->GetPopupAlignment()) {
+
bgstack15