From 51a685cae009ee4ee6d06a9abb6e2147aa7c40ed Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Thu, 21 Mar 2019 12:19:07 +0100 Subject: Fixed mozbz#1423598 for multi-monitor setup --- firefox.spec | 1 + mozilla-1423598-popup.patch | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/firefox.spec b/firefox.spec index 856c692..bcc58cc 100644 --- a/firefox.spec +++ b/firefox.spec @@ -926,6 +926,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog * Thu Mar 21 2019 Martin Stransky - 66.0-8.test - Added module specific build config +- Fixed mozbz#1423598 for multi-monitor setup * Wed Mar 20 2019 Martin Stransky - 66.0-7.test - Switched to test builds diff --git a/mozilla-1423598-popup.patch b/mozilla-1423598-popup.patch index fc07bd8..7d71e2e 100644 --- a/mozilla-1423598-popup.patch +++ b/mozilla-1423598-popup.patch @@ -38,11 +38,11 @@ diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp + GdkAnchorHints, gint, gint)) + dlsym(RTLD_DEFAULT, "gdk_window_move_to_rect"); + ++ if (aSize) { ++ gtk_window_resize(GTK_WINDOW(mShell), aSize->width, aSize->height); ++ } + if (!sGdkWindowMoveToRect) { + gtk_window_move(GTK_WINDOW(mShell), aPosition->x, aPosition->y); -+ if (aSize) { -+ gtk_window_resize(GTK_WINDOW(mShell), aSize->width, aSize->height); -+ } + return; + } + -- cgit