diff options
author | Simon Ser <contact@emersion.fr> | 2020-04-27 16:41:54 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-06-17 10:18:58 -0600 |
commit | e19bd1e47441e6292eb77d7caa8b3211666bef2e (patch) | |
tree | f86b9bc75ecb42e0eee529c131a3635514fae444 /sway/server.c | |
parent | 8fa74add82b4975ea1fb8d1e57308bd591e6d9d0 (diff) |
Add support for viewporter
Depends on [1].
[1]: https://github.com/swaywm/wlroots/pull/2092
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index cf36962b..724a0e25 100644 --- a/sway/server.c +++ b/sway/server.c @@ -22,6 +22,7 @@ #include <wlr/types/wlr_screencopy_v1.h> #include <wlr/types/wlr_server_decoration.h> #include <wlr/types/wlr_tablet_v2.h> +#include <wlr/types/wlr_viewporter.h> #include <wlr/types/wlr_xcursor_manager.h> #include <wlr/types/wlr_xdg_decoration_v1.h> #include <wlr/types/wlr_xdg_output_v1.h> @@ -146,6 +147,7 @@ bool server_init(struct sway_server *server) { wlr_screencopy_manager_v1_create(server->wl_display); wlr_data_control_manager_v1_create(server->wl_display); wlr_primary_selection_v1_device_manager_create(server->wl_display); + wlr_viewporter_create(server->wl_display); server->socket = wl_display_add_socket_auto(server->wl_display); if (!server->socket) { |