mirror of
https://github.com/labwc/labwc.git
synced 2026-03-19 05:33:53 -04:00
Chase wlroots: Pass version to wlr_compositor_create()
Chases: 0bb574239d3b164596677bf4cec371ff0671dc4f compositor: pass version in wlr_compositor_create
This commit is contained in:
parent
3e442785d3
commit
dc6bc43282
2 changed files with 5 additions and 3 deletions
|
|
@ -30,6 +30,8 @@
|
||||||
#include "workspaces.h"
|
#include "workspaces.h"
|
||||||
#include "xwayland.h"
|
#include "xwayland.h"
|
||||||
|
|
||||||
|
#define LAB_WLR_COMPOSITOR_VERSION (5)
|
||||||
|
|
||||||
static struct wlr_compositor *compositor;
|
static struct wlr_compositor *compositor;
|
||||||
static struct wl_event_source *sighup_source;
|
static struct wl_event_source *sighup_source;
|
||||||
static struct wl_event_source *sigint_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
|
* room for you to dig your fingers in and play with their behavior if
|
||||||
* you want.
|
* you want.
|
||||||
*/
|
*/
|
||||||
compositor =
|
compositor = wlr_compositor_create(server->wl_display,
|
||||||
wlr_compositor_create(server->wl_display, server->renderer);
|
LAB_WLR_COMPOSITOR_VERSION, server->renderer);
|
||||||
if (!compositor) {
|
if (!compositor) {
|
||||||
wlr_log(WLR_ERROR, "unable to create the wlroots compositor");
|
wlr_log(WLR_ERROR, "unable to create the wlroots compositor");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[wrap-git]
|
[wrap-git]
|
||||||
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
|
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
|
||||||
revision = 7b32c25a4fbdcde4197a06c8e0ff638c54753bd7
|
revision = 0bb574239d3b164596677bf4cec371ff0671dc4f
|
||||||
|
|
||||||
[provide]
|
[provide]
|
||||||
dependency_names = wlroots
|
dependency_names = wlroots
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue