[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser] 167/311: Bug 1758594 - Back out a part of bug 1757106 which is no longer needed and would need more work to be fully correct. r=stransky a=dmeehan
This is an automated email from the git hooks/post-receive script.
pierov pushed a commit to branch geckoview-99.0.1-11.0-1
in repository tor-browser.
commit 0b8d1358b4cf6acbe7760dd1a1d91430c3651552
Author: Emilio Cobos Álvarez <emilio@xxxxxxxxx>
AuthorDate: Mon Mar 14 09:32:22 2022 +0000
Bug 1758594 - Back out a part of bug 1757106 which is no longer needed and would need more work to be fully correct. r=stransky a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D140636
---
widget/gtk/nsWindow.cpp | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
index 304f1bb0d88c7..d99d6ecf6184f 100644
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -2072,16 +2072,9 @@ void nsWindow::NativeMoveResizeWaylandPopup(bool aMove, bool aResize) {
return;
}
- bool sizeChanged = false;
if (aResize) {
- gint oldWidth = 0, oldHeight = 0;
- gtk_window_get_size(GTK_WINDOW(mShell), &oldWidth, &oldHeight);
- LOG(" set size [%d, %d] -> [%d, %d]\n", oldWidth, oldHeight, rect.width,
- rect.height);
- sizeChanged = oldWidth != rect.width || oldHeight != rect.height;
- if (sizeChanged) {
- gtk_window_resize(GTK_WINDOW(mShell), rect.width, rect.height);
- }
+ LOG(" set size [%d, %d]\n", rect.width, rect.height);
+ gtk_window_resize(GTK_WINDOW(mShell), rect.width, rect.height);
}
auto clearUpdateFlag =
@@ -2094,12 +2087,6 @@ void nsWindow::NativeMoveResizeWaylandPopup(bool aMove, bool aResize) {
return;
}
- if (!sizeChanged && mPopupPosition.x == rect.x &&
- mPopupPosition.y == rect.y) {
- LOG(" popup position and size didn't change, bailing");
- return;
- }
-
// Mark popup as changed as we're updating position/size.
mPopupChanged = true;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits