mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-04 20:55:58 +01:00
Allocate framebuffers for hardware cursors
Still doesn't fix cursors though
This commit is contained in:
parent
7e038a6110
commit
e9609e9adf
2 changed files with 6 additions and 1 deletions
|
@ -296,6 +296,10 @@ static void wlr_drm_cursor_bo_update(struct wlr_output_state *output,
|
|||
wlr_log(L_ERROR, "Failed to create cursor bo");
|
||||
return;
|
||||
}
|
||||
if (!get_fb_for_bo(state->fd, output->cursor_bo[i])) {
|
||||
wlr_log(L_ERROR, "Failed to create cursor fb");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -94,8 +94,9 @@ static void handle_pointer_axis(struct pointer_state *pstate,
|
|||
|
||||
static void handle_output_add(struct output_state *ostate) {
|
||||
struct wlr_output *wlr_output = ostate->output;
|
||||
int width = 16, height = 16;
|
||||
if (!wlr_output_set_cursor(wlr_output, cat_tex.pixel_data,
|
||||
cat_tex.width * 4, cat_tex.width, cat_tex.height)) {
|
||||
width * 4, width, height)) {
|
||||
fprintf(stderr, "Failed to set cursor\n");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue