render: don't call wl_surface_set_buffer_scale()

Since we don't support scaling, don't call
wl_surface_set_buffer_scale(). This way, at least will get auto-scaled
by the compositor.
This commit is contained in:
Daniel Eklöf 2019-07-30 20:33:17 +02:00
parent 2c3f2269fc
commit d8ab96b8d9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -725,13 +725,14 @@ render_update_cursor_surface(struct terminal *term)
if (term->wl.pointer.cursor == NULL)
return;
//const int scale = backend->monitor->scale;
const int scale = 1;
#if 0
//const int scale = backend->monitor->scale;
wl_surface_set_buffer_scale(term->wl.pointer.surface, scale);
#endif
struct wl_cursor_image *image = term->wl.pointer.cursor->images[0];
wl_surface_set_buffer_scale(term->wl.pointer.surface, scale);
wl_surface_attach(
term->wl.pointer.surface, wl_cursor_image_get_buffer(image), 0, 0);