mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Fix cursor stride
This commit is contained in:
parent
c7a4346bfc
commit
008e1d596d
1 changed files with 2 additions and 1 deletions
|
@ -190,8 +190,9 @@ static void handle_cursor_surface_commit(struct wl_listener *listener,
|
|||
void *buffer_data = wl_shm_buffer_get_data(buffer);
|
||||
int32_t width = wl_shm_buffer_get_width(buffer);
|
||||
int32_t height = wl_shm_buffer_get_height(buffer);
|
||||
int32_t stride = wl_shm_buffer_get_stride(buffer);
|
||||
wl_shm_buffer_begin_access(buffer);
|
||||
wlr_output_set_cursor(output, buffer_data, width, width, height,
|
||||
wlr_output_set_cursor(output, buffer_data, stride/4, width, height,
|
||||
output->cursor.hotspot_x, output->cursor.hotspot_y);
|
||||
wl_shm_buffer_end_access(buffer);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue