diff options
author | emersion <contact@emersion.fr> | 2018-05-13 16:38:56 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-05-13 16:38:56 +0100 |
commit | 88d9d43b367b9b0cb61c4c9fb1619becdb71e9d6 (patch) | |
tree | 20597fec9184cbad25711a0f0cd7c028e99d2e78 /sway/server.c | |
parent | 0c96d757d0d5d1762390dd119cbe344e8781c19f (diff) |
Add xdg-shell stable support
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index 8c41ee87..dcc18998 100644 --- a/sway/server.c +++ b/sway/server.c @@ -81,6 +81,11 @@ bool server_init(struct sway_server *server) { &server->xdg_shell_v6_surface); server->xdg_shell_v6_surface.notify = handle_xdg_shell_v6_surface; + server->xdg_shell = wlr_xdg_shell_create(server->wl_display); + wl_signal_add(&server->xdg_shell->events.new_surface, + &server->xdg_shell_surface); + server->xdg_shell_surface.notify = handle_xdg_shell_surface; + server->wl_shell = wlr_wl_shell_create(server->wl_display); wl_signal_add(&server->wl_shell->events.new_surface, &server->wl_shell_surface); |