mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Update for new wlr_buffer API
Update for [1]. [1]: https://github.com/swaywm/wlroots/pull/2044
This commit is contained in:
parent
dffc184a68
commit
3a5d9b3b32
1 changed files with 2 additions and 2 deletions
|
@ -1154,7 +1154,7 @@ void view_remove_saved_buffer(struct sway_view *view) {
|
|||
if (!sway_assert(view->saved_buffer, "Expected a saved buffer")) {
|
||||
return;
|
||||
}
|
||||
wlr_buffer_unref(&view->saved_buffer->base);
|
||||
wlr_buffer_unlock(&view->saved_buffer->base);
|
||||
view->saved_buffer = NULL;
|
||||
}
|
||||
|
||||
|
@ -1163,7 +1163,7 @@ void view_save_buffer(struct sway_view *view) {
|
|||
view_remove_saved_buffer(view);
|
||||
}
|
||||
if (view->surface && wlr_surface_has_buffer(view->surface)) {
|
||||
wlr_buffer_ref(&view->surface->buffer->base);
|
||||
wlr_buffer_lock(&view->surface->buffer->base);
|
||||
view->saved_buffer = view->surface->buffer;
|
||||
view->saved_buffer_width = view->surface->current.width;
|
||||
view->saved_buffer_height = view->surface->current.height;
|
||||
|
|
Loading…
Reference in a new issue