mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Do not call wlr_surface_state_release_buffer anymore
This commit is contained in:
parent
67f0c3ca42
commit
5c6a933890
2 changed files with 5 additions and 6 deletions
|
@ -238,10 +238,6 @@ void wlr_output_set_cursor_surface(struct wlr_output *output,
|
|||
output->cursor.hotspot_x = hotspot_x;
|
||||
output->cursor.hotspot_y = hotspot_y;
|
||||
|
||||
if (surface && output->cursor.surface == surface) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (output->cursor.surface) {
|
||||
wl_list_remove(&output->cursor.surface_commit.link);
|
||||
wl_list_remove(&output->cursor.surface_destroy.link);
|
||||
|
@ -252,7 +248,9 @@ void wlr_output_set_cursor_surface(struct wlr_output *output,
|
|||
|
||||
if (surface != NULL) {
|
||||
wl_signal_add(&surface->events.commit, &output->cursor.surface_commit);
|
||||
wl_signal_add(&surface->events.destroy, &output->cursor.surface_destroy);
|
||||
wl_signal_add(&surface->events.destroy,
|
||||
&output->cursor.surface_destroy);
|
||||
commit_cursor_surface(output, surface);
|
||||
} else {
|
||||
set_cursor(output, NULL, 0, 0, 0, hotspot_x, hotspot_y);
|
||||
}
|
||||
|
|
|
@ -427,7 +427,8 @@ static void wlr_surface_commit_pending(struct wlr_surface *surface) {
|
|||
// TODO: add the invalid bitfield to this callback
|
||||
wl_signal_emit(&surface->events.commit, surface);
|
||||
|
||||
wlr_surface_state_release_buffer(surface->current);
|
||||
// TODO: call this
|
||||
//wlr_surface_state_release_buffer(surface->current);
|
||||
}
|
||||
|
||||
static bool wlr_subsurface_is_synchronized(struct wlr_subsurface *subsurface) {
|
||||
|
|
Loading…
Reference in a new issue