Fixed mozbz#1423598 for multi-monitor setup
This commit is contained in:
parent
ad36ec0588
commit
51a685cae0
@ -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
|
||||||
|
@ -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 (aSize) {
|
||||||
|
+ gtk_window_resize(GTK_WINDOW(mShell), aSize->width, aSize->height);
|
||||||
|
+ }
|
||||||
+ if (!sGdkWindowMoveToRect) {
|
+ if (!sGdkWindowMoveToRect) {
|
||||||
+ gtk_window_move(GTK_WINDOW(mShell), aPosition->x, aPosition->y);
|
+ gtk_window_move(GTK_WINDOW(mShell), aPosition->x, aPosition->y);
|
||||||
+ if (aSize) {
|
|
||||||
+ gtk_window_resize(GTK_WINDOW(mShell), aSize->width, aSize->height);
|
|
||||||
+ }
|
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user