Fixed mozbz#1423598 for multi-monitor setup

This commit is contained in:
Martin Stransky 2019-03-21 12:19:07 +01:00
parent ad36ec0588
commit 51a685cae0
2 changed files with 4 additions and 3 deletions

View File

@ -926,6 +926,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog %changelog
* Thu Mar 21 2019 Martin Stransky <stransky@redhat.com> - 66.0-8.test * Thu Mar 21 2019 Martin Stransky <stransky@redhat.com> - 66.0-8.test
- Added module specific build config - 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 * Wed Mar 20 2019 Martin Stransky <stransky@redhat.com> - 66.0-7.test
- Switched to test builds - Switched to test builds

View File

@ -38,11 +38,11 @@ diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
+ GdkAnchorHints, gint, gint)) + GdkAnchorHints, gint, gint))
+ dlsym(RTLD_DEFAULT, "gdk_window_move_to_rect"); + dlsym(RTLD_DEFAULT, "gdk_window_move_to_rect");
+ +
+ if (!sGdkWindowMoveToRect) {
+ gtk_window_move(GTK_WINDOW(mShell), aPosition->x, aPosition->y);
+ if (aSize) { + if (aSize) {
+ gtk_window_resize(GTK_WINDOW(mShell), aSize->width, aSize->height); + gtk_window_resize(GTK_WINDOW(mShell), aSize->width, aSize->height);
+ } + }
+ if (!sGdkWindowMoveToRect) {
+ gtk_window_move(GTK_WINDOW(mShell), aPosition->x, aPosition->y);
+ return; + return;
+ } + }
+ +