diff options
author | emersion <contact@emersion.fr> | 2018-02-16 23:36:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-16 23:36:17 +0100 |
commit | 088028c570dd5b52f81069654166f0117667fac0 (patch) | |
tree | 54630cfe4990d868a928a55a3bc5563ff3bef11d /rootston/desktop.c | |
parent | 8c1cc45c7db9be4b49ffb27541e908f492fd59ba (diff) | |
parent | 4941befeb0fb268e5c60fb6001dc381320407072 (diff) |
Merge pull request #630 from martinetd/xdg_shell
xdg-shell stable implementation
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r-- | rootston/desktop.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c index 80ccbc25..6b28a41c 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -15,6 +15,7 @@ #include <wlr/types/wlr_wl_shell.h> #include <wlr/types/wlr_xcursor_manager.h> #include <wlr/types/wlr_xdg_shell_v6.h> +#include <wlr/types/wlr_xdg_shell.h> #include <wlr/util/log.h> #include "rootston/seat.h" #include "rootston/server.h" @@ -639,6 +640,11 @@ struct roots_desktop *desktop_create(struct roots_server *server, &desktop->xdg_shell_v6_surface); desktop->xdg_shell_v6_surface.notify = handle_xdg_shell_v6_surface; + desktop->xdg_shell = wlr_xdg_shell_create(server->wl_display); + wl_signal_add(&desktop->xdg_shell->events.new_surface, + &desktop->xdg_shell_surface); + desktop->xdg_shell_surface.notify = handle_xdg_shell_surface; + desktop->wl_shell = wlr_wl_shell_create(server->wl_display); wl_signal_add(&desktop->wl_shell->events.new_surface, &desktop->wl_shell_surface); |