Add support for viewporter

Depends on [1].

[1]: https://github.com/swaywm/wlroots/pull/2092
This commit is contained in:
Simon Ser 2020-04-27 16:41:54 +02:00 committed by Drew DeVault
parent 8fa74add82
commit e19bd1e474
4 changed files with 24 additions and 11 deletions

View file

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