mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
Re implement partial texture uploads for surfaces and immediate buffer unlocking
This commit is contained in:
parent
c71800cf8d
commit
43a3cbe6ae
4 changed files with 108 additions and 9 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue