Skip to content

Commit

Permalink
Scale cursor size for HiDPI
Browse files Browse the repository at this point in the history
  • Loading branch information
vkareh authored and flexiondotorg committed Mar 26, 2018
1 parent 03029b3 commit f45d299
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/prefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "prefs.h"
#include "ui.h"
#include "util.h"
#include <gdk/gdk.h>
#include <gio/gio.h>
#include <string.h>
#include <stdlib.h>
Expand Down Expand Up @@ -1097,7 +1098,10 @@ meta_prefs_get_cursor_theme (void)
int
meta_prefs_get_cursor_size (void)
{
return cursor_size;
GdkWindow *window = gdk_get_default_root_window ();
gint scale = gdk_window_get_scale_factor (window);

return cursor_size * scale;
}

gboolean
Expand Down

0 comments on commit f45d299

Please sign in to comment.