]> git.mdlowis.com Git - proto/labwc.git/commitdiff
server: Expose viewporter
authorJoshua Ashton <joshua@froggi.es>
Wed, 20 Oct 2021 16:27:14 +0000 (16:27 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 20 Oct 2021 17:49:22 +0000 (18:49 +0100)
Needed for some games to fake modesets.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
src/server.c

index 4cbfac8fb037641963fd327de9f2cafbeb2844d3..167640fbad4a7882f3b8f8dd7d234ab12aa37677 100644 (file)
@@ -9,6 +9,7 @@
 #include <wlr/types/wlr_input_inhibitor.h>
 #include <wlr/types/wlr_primary_selection_v1.h>
 #include <wlr/types/wlr_screencopy_v1.h>
+#include <wlr/types/wlr_viewporter.h>
 #include "config/rcxml.h"
 #include "labwc.h"
 #include "layers.h"
@@ -268,6 +269,7 @@ server_init(struct server *server)
        wlr_screencopy_manager_v1_create(server->wl_display);
        wlr_data_control_manager_v1_create(server->wl_display);
        wlr_gamma_control_manager_v1_create(server->wl_display);
+       wlr_viewporter_create(server->wl_display);
 
        server->relative_pointer_manager = wlr_relative_pointer_manager_v1_create(
                server->wl_display);