We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bb0b3e commit 81fdb55Copy full SHA for 81fdb55
src/core/prefs.c
@@ -27,6 +27,7 @@
27
#include "prefs.h"
28
#include "ui.h"
29
#include "util.h"
30
+#include <gdk/gdk.h>
31
#include <gio/gio.h>
32
#include <string.h>
33
#include <stdlib.h>
@@ -1097,7 +1098,10 @@ meta_prefs_get_cursor_theme (void)
1097
1098
int
1099
meta_prefs_get_cursor_size (void)
1100
{
- return cursor_size;
1101
+ GdkWindow *window = gdk_get_default_root_window ();
1102
+ gint scale = gdk_window_get_scale_factor (window);
1103
+
1104
+ return cursor_size * scale;
1105
}
1106
1107
gboolean
0 commit comments