diff options
author | Simon Ser <contact@emersion.fr> | 2022-01-13 11:15:39 +0100 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-01-13 14:01:37 +0300 |
commit | d6f8820a8b7190a2ce76a0f140e1514e2c32dd50 (patch) | |
tree | e59e41a785297697c9e8fef7f1a8b1e90efc1699 /sway/server.c | |
parent | dbaf2e4fdb327f05f792b69430fe6f893fc9d879 (diff) |
Upgrade for wlroots surface refactoring
See [1] for details.
[1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3412
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index f50a0987..567e6ae4 100644 --- a/sway/server.c +++ b/sway/server.c @@ -24,6 +24,7 @@ #include <wlr/types/wlr_relative_pointer_v1.h> #include <wlr/types/wlr_screencopy_v1.h> #include <wlr/types/wlr_server_decoration.h> +#include <wlr/types/wlr_subcompositor.h> #include <wlr/types/wlr_tablet_v2.h> #include <wlr/types/wlr_viewporter.h> #include <wlr/types/wlr_xcursor_manager.h> @@ -101,6 +102,8 @@ bool server_init(struct sway_server *server) { wl_signal_add(&server->compositor->events.new_surface, &server->compositor_new_surface); + wlr_subcompositor_create(server->wl_display); + server->data_device_manager = wlr_data_device_manager_create(server->wl_display); |