mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-08 05:34:32 -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue