summaryrefslogtreecommitdiff
path: root/plugins/xsettings
diff options
context:
space:
mode:
authorFabio Pugliese Ornellas <[email protected]>2022-09-08 23:44:35 +0100
committerraveit65 <[email protected]>2023-05-11 17:57:57 +0200
commit669fa3007a661c033a16526ee2dc7672d164d5f7 (patch)
treeb50e70e5c52b04944945dc9494bf020e342c1e48 /plugins/xsettings
parente504604afc8f1a5b3bd9efdcb97b02fce4e53f57 (diff)
downloadmate-settings-daemon-669fa3007a661c033a16526ee2dc7672d164d5f7.tar.bz2
mate-settings-daemon-669fa3007a661c033a16526ee2dc7672d164d5f7.tar.xz
Relax High DPI limits
Diffstat (limited to 'plugins/xsettings')
-rw-r--r--plugins/xsettings/msd-xsettings-manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/xsettings/msd-xsettings-manager.c b/plugins/xsettings/msd-xsettings-manager.c
index ec7d079..c8199da 100644
--- a/plugins/xsettings/msd-xsettings-manager.c
+++ b/plugins/xsettings/msd-xsettings-manager.c
@@ -76,12 +76,14 @@
#define DPI_HIGH_REASONABLE_VALUE 500
/* The minimum resolution at which we turn on a window-scale of 2 */
-#define HIDPI_LIMIT (DPI_FALLBACK * 2)
+/* Set this to 90% of 2x DPI_FALLBACK, to catch QHD laptop screens */
+/* that are just below the 2x DPI_FALLBACK mark */
+#define HIDPI_LIMIT (DPI_FALLBACK * 2 * 90 / 100)
/* The minimum screen height at which we turn on a window-scale of 2;
* below this there just isn't enough vertical real estate for GNOME
* apps to work, and it's better to just be tiny */
-#define HIDPI_MIN_HEIGHT 1500
+#define HIDPI_MIN_HEIGHT 1440
#define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((GPOINTER_TO_INT(i) == 2) ? TRUE : FALSE))
#define GBOOLEAN_TO_POINTER(i) (GINT_TO_POINTER ((i) ? 2 : 1))