summaryrefslogtreecommitdiff
path: root/mozilla-1767946-profilemanagersize.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2022-05-18 09:28:49 +0200
committerMartin Stransky <stransky@redhat.com>2022-05-18 09:28:49 +0200
commitc917e8ec4f579b3ebf1ef5292d96198a910cfefb (patch)
tree1da438ee934f59d736d443508f10474b09603649 /mozilla-1767946-profilemanagersize.patch
parentUpdated to 100.0.1 (diff)
parentFix spellchecker.dictionary_path of F36+ (diff)
downloadlibrewolf-fedora-ff-c917e8ec4f579b3ebf1ef5292d96198a910cfefb.tar.gz
librewolf-fedora-ff-c917e8ec4f579b3ebf1ef5292d96198a910cfefb.tar.bz2
librewolf-fedora-ff-c917e8ec4f579b3ebf1ef5292d96198a910cfefb.zip
merge
Diffstat (limited to 'mozilla-1767946-profilemanagersize.patch')
-rw-r--r--mozilla-1767946-profilemanagersize.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/mozilla-1767946-profilemanagersize.patch b/mozilla-1767946-profilemanagersize.patch
new file mode 100644
index 0000000..4469934
--- /dev/null
+++ b/mozilla-1767946-profilemanagersize.patch
@@ -0,0 +1,30 @@
+diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
+--- a/widget/gtk/nsWindow.cpp
++++ b/widget/gtk/nsWindow.cpp
+@@ -3787,11 +3787,12 @@
+ mPendingConfigures--;
+ }
+
+ // Don't fire configure event for scale changes, we handle that
+ // OnScaleChanged event. Skip that for toplevel windows only.
+- if (mWindowType == eWindowType_toplevel) {
++ if (mWindowType == eWindowType_toplevel ||
++ mWindowType == eWindowType_dialog) {
+ MOZ_DIAGNOSTIC_ASSERT(mGdkWindow,
+ "Getting configure for invisible window?");
+ if (mWindowScaleFactor != gdk_window_get_scale_factor(mGdkWindow)) {
+ LOG(" scale factor changed to %d,return early",
+ gdk_window_get_scale_factor(mGdkWindow));
+@@ -4864,10 +4865,11 @@
+ // Force scale factor recalculation
+ if (!mGdkWindow) {
+ mWindowScaleFactorChanged = true;
+ return;
+ }
++ LOG("OnScaleChanged -> %d\n", gdk_window_get_scale_factor(mGdkWindow));
+
+ // Gtk supply us sometimes with doubled events so stay calm in such case.
+ if (gdk_window_get_scale_factor(mGdkWindow) == mWindowScaleFactor) {
+ return;
+ }
+
bgstack15