summaryrefslogtreecommitdiff
path: root/D147266.diff
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2022-05-25 11:52:47 +0200
committerMartin Stransky <stransky@redhat.com>2022-05-25 11:52:47 +0200
commit972fcbe03983f3b2ba0f0b6dc34b0652105f139e (patch)
tree5a2c98253cb65393992a767e0234e0b412964439 /D147266.diff
parentUpdated to 100.0.2 (diff)
downloadlibrewolf-fedora-ff-972fcbe03983f3b2ba0f0b6dc34b0652105f139e.tar.gz
librewolf-fedora-ff-972fcbe03983f3b2ba0f0b6dc34b0652105f139e.tar.bz2
librewolf-fedora-ff-972fcbe03983f3b2ba0f0b6dc34b0652105f139e.zip
Added fix for mzbz#1771104
Diffstat (limited to 'D147266.diff')
-rw-r--r--D147266.diff31
1 files changed, 31 insertions, 0 deletions
diff --git a/D147266.diff b/D147266.diff
new file mode 100644
index 0000000..5f8a580
--- /dev/null
+++ b/D147266.diff
@@ -0,0 +1,31 @@
+diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
+--- a/widget/gtk/nsWindow.cpp
++++ b/widget/gtk/nsWindow.cpp
+@@ -1430,20 +1430,20 @@
+ }
+ #endif
+ if (popup->mPopupContextMenu && !popup->mPopupAnchored) {
+ LOG(" popup [%p] is first context menu", popup);
+ popup->mRelativePopupPosition = popup->mPopupPosition;
+- } else if (popup->mPopupAnchored) {
+- LOG(" popup [%p] is anchored", popup);
+- if (!popup->mPopupMatchesLayout) {
+- NS_WARNING("Anchored popup does not match layout!");
+- }
+- popup->mRelativePopupPosition = popup->mPopupPosition;
+ } else if (popup->mWaylandPopupPrev->mWaylandToplevel == nullptr) {
+ LOG(" popup [%p] has toplevel as parent", popup);
+ popup->mRelativePopupPosition = popup->mPopupPosition;
+ } else {
++ if (popup->mPopupAnchored) {
++ LOG(" popup [%p] is anchored", popup);
++ if (!popup->mPopupMatchesLayout) {
++ NS_WARNING("Anchored popup does not match layout!");
++ }
++ }
+ GdkPoint parent = WaylandGetParentPosition();
+
+ LOG(" popup [%p] uses transformed coordinates\n", popup);
+ LOG(" parent position [%d, %d]\n", parent.x, parent.y);
+ LOG(" popup position [%d, %d]\n", popup->mPopupPosition.x,
+
bgstack15