Fix incompatibilities with wlroots 0.11.0

This commit is contained in:
project-repo 2020-07-18 22:58:54 +02:00
commit bcb898238c
2 changed files with 2 additions and 4 deletions

View file

@ -261,10 +261,7 @@ scan_out_primary_view(struct cg_output *output) {
return false;
}
if(!wlr_output_attach_buffer(wlr_output, surface->buffer)) {
return false;
}
wlr_output_attach_buffer(wlr_output, &surface->buffer->base);
return wlr_output_commit(wlr_output);
}

View file

@ -7,6 +7,7 @@
* See the LICENSE file accompanying this file.
*/
#include <X11/Xutil.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wayland-server-core.h>