From a2e997b40b145715706cc5675bcd9716f3bb80e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 4 Sep 2019 08:18:12 +0000 Subject: [PATCH] Bug 1578652 - Add a comment pointing to a gross gtk resize workaround. r=stransky This was fixed upstream, so we can eventually remove this. Having the issue number makes it much nicer to figure out when is the right time to remove it. Differential Revision: https://phabricator.services.mozilla.com/D44624 --HG-- extra : moz-landing-system : lando --- widget/gtk/nsWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index ddb4e6a54a0f..dd9461e92fbe 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -3242,6 +3242,8 @@ void nsWindow::OnWindowStateEvent(GtkWidget* aWidget, // // We instead notify gtk_window_state_event() of the maximized state change // once the window is shown. + // + // See https://gitlab.gnome.org/GNOME/gtk/issues/1044 if (!mIsShown) { aEvent->changed_mask = static_cast( aEvent->changed_mask & ~GDK_WINDOW_STATE_MAXIMIZED);