From 68dcc824bbb0791d33aec9e5e57aca5e84264ada Mon Sep 17 00:00:00 2001 From: tiosgz Date: Wed, 22 Dec 2021 21:17:30 +0000 Subject: [PATCH] Support protocols made easy by wlr_scene --- kiwmi/desktop/desktop.c | 5 +++++ kiwmi/server.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/kiwmi/desktop/desktop.c b/kiwmi/desktop/desktop.c index 881c574..e2261ec 100644 --- a/kiwmi/desktop/desktop.c +++ b/kiwmi/desktop/desktop.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -67,6 +68,10 @@ desktop_init(struct kiwmi_desktop *desktop) wlr_scene_attach_output_layout(desktop->scene, desktop->output_layout); + struct wlr_presentation *presentation = + wlr_presentation_create(server->wl_display, server->backend); + wlr_scene_set_presentation(desktop->scene, presentation); + desktop->xdg_shell = wlr_xdg_shell_create(server->wl_display); desktop->xdg_shell_new_surface.notify = xdg_shell_new_surface_notify; wl_signal_add( diff --git a/kiwmi/server.c b/kiwmi/server.c index 6bd9f27..03224ff 100644 --- a/kiwmi/server.c +++ b/kiwmi/server.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include "luak/luak.h" @@ -67,6 +68,7 @@ server_init(struct kiwmi_server *server, char *config_path) wlr_data_control_manager_v1_create(server->wl_display); wlr_gamma_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) {