summaryrefslogtreecommitdiff
path: root/mozilla-1687931.patch
blob: 91f7e9cd35e65f19bf96154dcc6ca3af21d0b410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
changeset:   565888:91903b2fd4ab
tag:         tip
parent:      565886:1a895ef04f9f
user:        stransky <stransky@redhat.com>
date:        Thu Jan 21 12:27:43 2021 +0100
files:       widget/gtk/nsWindow.cpp
description:
Bug 1687931 [Wayland] Don't cache monitor scale factor, r?jhorak

Differential Revision: https://phabricator.services.mozilla.com/D102590


diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -7714,10 +7714,10 @@ gint nsWindow::GdkScaleFactor() {
       (gint(*)(GdkWindow*))dlsym(RTLD_DEFAULT, "gdk_window_get_scale_factor");
   if (sGdkWindowGetScaleFactorPtr && scaledGdkWindow) {
     mWindowScaleFactor = (*sGdkWindowGetScaleFactorPtr)(scaledGdkWindow);
+    mWindowScaleFactorChanged = false;
   } else {
     mWindowScaleFactor = ScreenHelperGTK::GetGTKMonitorScaleFactor();
   }
-  mWindowScaleFactorChanged = false;
 
   return mWindowScaleFactor;
 }

bgstack15