commit 81bed30d4af0eaf9bc882048dd6084a091912c1f
parent 1734b54c10fd2f83745bdd6d7d430d146b0f0de1
Author: stransky <stransky@redhat.com>
Date: Wed, 12 Nov 2025 12:05:54 +0000
Bug 1999123 [Wayland] Don't consider popup explicitly moved if it's resized only r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D272220
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
@@ -2333,7 +2333,9 @@ void nsWindow::NativeMoveResizeWaylandPopup(bool aMove, bool aResize) {
}
// It's safe to expect the popup position is handled onwards.
- mWaylandApplyPopupPositionBeforeShow = false;
+ if (aMove) {
+ mWaylandApplyPopupPositionBeforeShow = false;
+ }
// We expect all Wayland popus have zero margin. If not, just position
// it as is and throw an error message.