compositor: Remove notion of primary renderer

Uploading textures are done by what outputs intersect the surface,
not an arbitrary renderer. If no outputs intersect the surface, the
source buffer is locked for longer until the surface is shown, at which
point a renderer will be uploaded the buffer.
This commit is contained in:
Alexander Orzechowski 2022-06-25 19:36:04 -04:00
parent fc6fd95e4d
commit 5a7c30966c
5 changed files with 52 additions and 61 deletions

View file

@ -166,8 +166,7 @@ int main(int argc, char *argv[]) {
server.allocator = wlr_allocator_autocreate(server.backend,
server.renderer);
struct wlr_compositor *compositor =
wlr_compositor_create(server.display, server.renderer);
struct wlr_compositor *compositor = wlr_compositor_create(server.display);
wlr_xdg_shell_create(server.display, 2);