bug 1455177 do not resize but only hide window when bounds make the window empty r?bradwerth draft
authorKarl Tomlinson <karlt+@karlt.net>
Thu, 19 Apr 2018 13:37:50 +1200
changeset 784804 a4865c22b2d75112b8704be14ec191c5e567b81a
parent 784524 0e45c13b34e815cb42a9f08bb44142d1a81e186e
push id107038
push userktomlinson@mozilla.com
push dateThu, 19 Apr 2018 03:57:13 +0000
reviewersbradwerth
bugs1455177
milestone61.0a1
bug 1455177 do not resize but only hide window when bounds make the window empty r?bradwerth This restores behavior to that prior to https://hg.mozilla.org/mozilla-central/rev/cb0eda54dfab#l1.139 MozReview-Commit-ID: Kf8TCl7Xsg3
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -4200,16 +4200,18 @@ nsWindow::NativeMoveResize()
         // hides the window or shows it.  It also prevents us from
         // calling NativeShow(false) excessively on the window which
         // causes unneeded X traffic.
         if (!mNeedsShow && mIsShown) {
             mNeedsShow = true;
             NativeShow(false);
         }
         NativeMove();
+
+        return;
     }
 
     GdkRectangle size = DevicePixelsToGdkSizeRoundUp(mBounds.Size());
     GdkPoint topLeft = DevicePixelsToGdkPointRoundDown(mBounds.TopLeft());
 
     LOG(("nsWindow::NativeMoveResize [%p] %d %d %d %d\n", (void *)this,
          topLeft.x, topLeft.y, size.width, size.height));