diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-13 13:45:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-13 13:45:15 -0400 |
commit | b2dec1236837f0c441a9fd6162b6294c52fac5e0 (patch) | |
tree | 6710b0e9261285f22df2751a1404b05371cff000 /sway/server.c | |
parent | 4f540b638e6d5adedb1a98565b654f4631ef6267 (diff) | |
parent | 88d9d43b367b9b0cb61c4c9fb1619becdb71e9d6 (diff) |
Merge pull request #1970 from emersion/xdg-shell-stable
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 ccc215eb..2c38970e 100644 --- a/sway/server.c +++ b/sway/server.c @@ -83,6 +83,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); |