diff options
author | Fabio Pugliese Ornellas <[email protected]> | 2022-09-08 23:44:35 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-11-03 07:30:45 +0000 |
commit | d48e5bc0e69d9c7add2db560f407fcb76f0a869b (patch) | |
tree | 3fa34d67af6bf7f2f57f37db9e71f636e143d02a /plugins/xsettings | |
parent | c867998fb5cc1565336c8fd5d7bdcae9ba397214 (diff) | |
download | mate-settings-daemon-d48e5bc0e69d9c7add2db560f407fcb76f0a869b.tar.bz2 mate-settings-daemon-d48e5bc0e69d9c7add2db560f407fcb76f0a869b.tar.xz |
Relax High DPI limits
Diffstat (limited to 'plugins/xsettings')
-rw-r--r-- | plugins/xsettings/msd-xsettings-manager.c | 6 |
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)) |