summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2019-03-21 12:19:07 +0100
committerMartin Stransky <stransky@redhat.com>2019-03-21 12:19:07 +0100
commit51a685cae009ee4ee6d06a9abb6e2147aa7c40ed (patch)
tree98bab7f4bd0d67cce6165ca7afb86b24011d0332
parentAdded module specific build config (diff)
downloadlibrewolf-fedora-ff-51a685cae009ee4ee6d06a9abb6e2147aa7c40ed.tar.gz
librewolf-fedora-ff-51a685cae009ee4ee6d06a9abb6e2147aa7c40ed.tar.bz2
librewolf-fedora-ff-51a685cae009ee4ee6d06a9abb6e2147aa7c40ed.zip
Fixed mozbz#1423598 for multi-monitor setup
-rw-r--r--firefox.spec1
-rw-r--r--mozilla-1423598-popup.patch6
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 <stransky@redhat.com> - 66.0-8.test
- Added module specific build config
+- Fixed mozbz#1423598 for multi-monitor setup
* Wed Mar 20 2019 Martin Stransky <stransky@redhat.com> - 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;
+ }
+
bgstack15