mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
xdg-shell stable: copy-pasta implementation
This commit is contained in:
parent
71cba94e73
commit
7d26a6debd
10 changed files with 2129 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue