From d8a877749e45e0afd07999a11b380b729c099f20 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Wed, 18 May 2022 13:55:33 +0200 Subject: [PATCH] Chase wlroots xdg_shell version To update the wlroots subproject use meson subprojects update wlroots --- src/server.c | 5 ++++- subprojects/wlroots.wrap | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/server.c b/src/server.c index bc513579..14af7919 100644 --- a/src/server.c +++ b/src/server.c @@ -19,6 +19,8 @@ #include "ssd.h" #include "theme.h" +#define LAB_XDG_SHELL_VERSION (2) + static struct wlr_compositor *compositor; static struct wl_event_source *sighup_source; static struct wl_event_source *sigint_source; @@ -282,7 +284,8 @@ server_init(struct server *server) seat_init(server); /* Init xdg-shell */ - server->xdg_shell = wlr_xdg_shell_create(server->wl_display); + server->xdg_shell = wlr_xdg_shell_create(server->wl_display, + LAB_XDG_SHELL_VERSION); if (!server->xdg_shell) { wlr_log(WLR_ERROR, "unable to create the XDG shell interface"); exit(EXIT_FAILURE); diff --git a/subprojects/wlroots.wrap b/subprojects/wlroots.wrap index f674a834..5ddce691 100644 --- a/subprojects/wlroots.wrap +++ b/subprojects/wlroots.wrap @@ -1,6 +1,6 @@ [wrap-git] url = https://gitlab.freedesktop.org/wlroots/wlroots.git -revision = 640f3b9f2156a007c5d1a36afdee570e123c95e4 +revision = 8fe3aa29da56be16faa73aca947647bd60cd4a94 [provide] dependency_names = wlroots