aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarnor-nolen <andrei.gorbulin@rightware.com>2023-05-02 17:21:51 +0300
committerarnor-nolen <andrei.gorbulin@rightware.com>2023-05-02 17:21:51 +0300
commitc023b4d252706089d7eeb1db6b571adcabfff8ac (patch)
treee4e188b318ed436e4620f0c24e87829c9b1a7d52
parent5680f405db06a8a69b70d5ac6c2dd086ee30ee4a (diff)
downloaddwlb-c023b4d252706089d7eeb1db6b571adcabfff8ac.tar.gz
Applied buffer_scale to cursor
-rw-r--r--dwlb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwlb.c b/dwlb.c
index 162227a..ff04523 100644
--- a/dwlb.c
+++ b/dwlb.c
@@ -584,9 +584,10 @@ pointer_enter(void *data, struct wl_pointer *pointer,
}
if (!cursor_image) {
- struct wl_cursor_theme *cursor_theme = wl_cursor_theme_load(NULL, 24, shm);
+ struct wl_cursor_theme *cursor_theme = wl_cursor_theme_load(NULL, 24 * buffer_scale, shm);
cursor_image = wl_cursor_theme_get_cursor(cursor_theme, "left_ptr")->images[0];
cursor_surface = wl_compositor_create_surface(compositor);
+ wl_surface_set_buffer_scale(cursor_surface, buffer_scale);
wl_surface_attach(cursor_surface, wl_cursor_image_get_buffer(cursor_image), 0, 0);
wl_surface_commit(cursor_surface);
}