diff options
author | Martin Stransky <stransky@redhat.com> | 2019-10-18 20:43:19 +0200 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2019-10-18 20:43:19 +0200 |
commit | 302967b0a822136f55649d389e0345870cae57a9 (patch) | |
tree | 74f03934005af107c89866275a8b2ff9e354bf32 /mozilla-1573813.patch | |
parent | Spec file update - firefox-wayland package (diff) | |
download | librewolf-fedora-ff-302967b0a822136f55649d389e0345870cae57a9.tar.gz librewolf-fedora-ff-302967b0a822136f55649d389e0345870cae57a9.tar.bz2 librewolf-fedora-ff-302967b0a822136f55649d389e0345870cae57a9.zip |
Updated to 70.0 Build 2
Diffstat (limited to 'mozilla-1573813.patch')
-rw-r--r-- | mozilla-1573813.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/mozilla-1573813.patch b/mozilla-1573813.patch deleted file mode 100644 index e9fca07..0000000 --- a/mozilla-1573813.patch +++ /dev/null @@ -1,29 +0,0 @@ -diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp ---- a/widget/gtk/nsWindow.cpp -+++ b/widget/gtk/nsWindow.cpp -@@ -6577,11 +6577,22 @@ - } - - gint nsWindow::GdkScaleFactor() { -+ // For popup windows with parent window we need to get scale factor of the -+ // parent window. Otherwise the scale factor of the popup is not updated -+ // during it's hidden. -+ GdkWindow* scaledGdkWindow = mGdkWindow; -+ if (mToplevelParentWindow) { -+ scaledGdkWindow = gtk_widget_get_window(GTK_WIDGET(mToplevelParentWindow)); -+ // Fallback for windows which parent has been unrealized. -+ if (!scaledGdkWindow) { -+ scaledGdkWindow = mGdkWindow; -+ } -+ } - // Available as of GTK 3.10+ - static auto sGdkWindowGetScaleFactorPtr = - (gint(*)(GdkWindow*))dlsym(RTLD_DEFAULT, "gdk_window_get_scale_factor"); -- if (sGdkWindowGetScaleFactorPtr && mGdkWindow) -- return (*sGdkWindowGetScaleFactorPtr)(mGdkWindow); -+ if (sGdkWindowGetScaleFactorPtr && scaledGdkWindow) -+ return (*sGdkWindowGetScaleFactorPtr)(scaledGdkWindow); - return ScreenHelperGTK::GetGTKMonitorScaleFactor(); - } - - |