Re implement partial texture uploads for surfaces and immediate buffer unlocking

This commit is contained in:
Alexander Orzechowski 2022-06-28 13:11:23 -04:00
parent c71800cf8d
commit 43a3cbe6ae
4 changed files with 108 additions and 9 deletions

View file

@ -427,8 +427,8 @@ static void output_cursor_commit(struct wlr_output_cursor *cursor,
struct wlr_surface *surface = cursor->surface;
assert(surface != NULL);
if (surface->current.buffer) {
cursor->raster = wlr_raster_create(surface->current.buffer);
if (surface->raster) {
cursor->raster = wlr_raster_lock(surface->raster);
}
// Some clients commit a cursor surface with a NULL buffer to hide it.