Chase wlroots: Pass version to wlr_compositor_create()

Chases: 0bb574239d3b164596677bf4cec371ff0671dc4f
compositor: pass version in wlr_compositor_create
This commit is contained in:
John Lindgren 2023-04-19 17:52:34 -04:00 committed by Johan Malm
parent 3e442785d3
commit dc6bc43282
2 changed files with 5 additions and 3 deletions

View file

@ -30,6 +30,8 @@
#include "workspaces.h"
#include "xwayland.h"
#define LAB_WLR_COMPOSITOR_VERSION (5)
static struct wlr_compositor *compositor;
static struct wl_event_source *sighup_source;
static struct wl_event_source *sigint_source;
@ -330,8 +332,8 @@ server_init(struct server *server)
* room for you to dig your fingers in and play with their behavior if
* you want.
*/
compositor =
wlr_compositor_create(server->wl_display, server->renderer);
compositor = wlr_compositor_create(server->wl_display,
LAB_WLR_COMPOSITOR_VERSION, server->renderer);
if (!compositor) {
wlr_log(WLR_ERROR, "unable to create the wlroots compositor");
exit(EXIT_FAILURE);

View file

@ -1,6 +1,6 @@
[wrap-git]
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
revision = 7b32c25a4fbdcde4197a06c8e0ff638c54753bd7
revision = 0bb574239d3b164596677bf4cec371ff0671dc4f
[provide]
dependency_names = wlroots