mirror of
https://github.com/swaywm/sway.git
synced 2026-06-04 03:03:29 -04:00
sway/server: advertise xdg-decoration-v1 version 2
Ref: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5385
This commit is contained in:
parent
f1b40bc288
commit
3302f1ce5c
1 changed files with 3 additions and 1 deletions
|
|
@ -78,6 +78,7 @@
|
||||||
#define SWAY_LAYER_SHELL_VERSION 5
|
#define SWAY_LAYER_SHELL_VERSION 5
|
||||||
#define SWAY_FOREIGN_TOPLEVEL_LIST_VERSION 1
|
#define SWAY_FOREIGN_TOPLEVEL_LIST_VERSION 1
|
||||||
#define SWAY_PRESENTATION_VERSION 2
|
#define SWAY_PRESENTATION_VERSION 2
|
||||||
|
#define SWAY_XDG_DECORATION_VERSION 2
|
||||||
|
|
||||||
bool unsupported_gpu_detected = false;
|
bool unsupported_gpu_detected = false;
|
||||||
|
|
||||||
|
|
@ -396,7 +397,8 @@ bool server_init(struct sway_server *server) {
|
||||||
wl_list_init(&server->decorations);
|
wl_list_init(&server->decorations);
|
||||||
|
|
||||||
server->xdg_decoration_manager =
|
server->xdg_decoration_manager =
|
||||||
wlr_xdg_decoration_manager_v1_create(server->wl_display);
|
wlr_xdg_decoration_manager_v1_create(server->wl_display,
|
||||||
|
SWAY_XDG_DECORATION_VERSION);
|
||||||
if (!server->xdg_decoration_manager) {
|
if (!server->xdg_decoration_manager) {
|
||||||
sway_log(SWAY_ERROR, "Failed to create XDG decoration manager");
|
sway_log(SWAY_ERROR, "Failed to create XDG decoration manager");
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue