mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
Cage: update for wlroots 0.5.0
This commit is contained in:
parent
eee63b8001
commit
d855ea6718
2 changed files with 11 additions and 2 deletions
11
cage.c
11
cage.c
|
|
@ -270,6 +270,15 @@ main(int argc, char *argv[])
|
|||
ret = 1;
|
||||
goto end;
|
||||
}
|
||||
|
||||
int rc = setenv("DISPLAY", xwayland->display_name, true);
|
||||
if (rc < 0) {
|
||||
wlr_log_errno(WLR_ERROR, "Unable to set DISPLAY for XWayland.",
|
||||
"Clients may not be able to connect");
|
||||
} else {
|
||||
wlr_log(WLR_DEBUG, "XWayland is running on display %s", socket);
|
||||
}
|
||||
|
||||
if (wlr_xcursor_manager_load(xcursor_manager, 1)) {
|
||||
wlr_log(WLR_ERROR, "Cannot load XWayland XCursor theme");
|
||||
}
|
||||
|
|
@ -296,7 +305,7 @@ main(int argc, char *argv[])
|
|||
goto end;
|
||||
}
|
||||
|
||||
int rc = setenv("WAYLAND_DISPLAY", socket, true);
|
||||
rc = setenv("WAYLAND_DISPLAY", socket, true);
|
||||
if (rc < 0) {
|
||||
wlr_log_errno(WLR_ERROR, "Unable to set WAYLAND_DISPLAY.",
|
||||
"Clients may not be able to connect");
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ endif
|
|||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
wlroots = dependency('wlroots', version: '>= 0.4.1')
|
||||
wlroots = dependency('wlroots', version: '>= 0.5.0')
|
||||
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
|
||||
wayland_server = dependency('wayland-server')
|
||||
pixman = dependency('pixman-1')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue