Skip to content

Commit

Permalink
server: request xdg-shell v2
Browse files Browse the repository at this point in the history
Wlroots does not yet support the newer xdg-shell versions and now
requires the compositor to set the supported xdg-shell version during
creation. Set this to v2 for sway as well.

Fixes swaywm#7001
  • Loading branch information
Emantor committed May 16, 2022
1 parent ffc603d commit 2dbc1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ bool server_init(struct sway_server *server) {
&server->layer_shell_surface);
server->layer_shell_surface.notify = handle_layer_shell_surface;

server->xdg_shell = wlr_xdg_shell_create(server->wl_display);
server->xdg_shell = wlr_xdg_shell_create(server->wl_display, 2);
wl_signal_add(&server->xdg_shell->events.new_surface,
&server->xdg_shell_surface);
server->xdg_shell_surface.notify = handle_xdg_shell_surface;
Expand Down

0 comments on commit 2dbc1d0

Please sign in to comment.