xdg-shell stable: copy-pasta implementation

This commit is contained in:
Dominique Martinet 2018-02-14 12:40:13 +01:00
parent 71cba94e73
commit 7d26a6debd
10 changed files with 2129 additions and 0 deletions

View file

@ -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);