summaryrefslogtreecommitdiff
path: root/D147266.diff
diff options
context:
space:
mode:
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