From 828744849d0b41d0b65db4f0bcb9be7e8698fdd0 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Fri, 3 Mar 2023 00:28:53 +0000 Subject: Convert to using wp_viewporter. This is the next step in supporting fractional scaling, as wl_surface_set_buffer_scale only supports integer scale factors. --- src/tofi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tofi.h') diff --git a/src/tofi.h b/src/tofi.h index 547b4ed..1ae05d6 100644 --- a/src/tofi.h +++ b/src/tofi.h @@ -35,6 +35,7 @@ struct tofi { struct wl_shm *wl_shm; struct wl_data_device_manager *wl_data_device_manager; struct wl_data_device *wl_data_device; + struct wp_viewporter *wp_viewporter; struct zwlr_layer_shell_v1 *zwlr_layer_shell; struct wl_list output_list; struct output_list_element *default_output; @@ -57,6 +58,7 @@ struct tofi { struct clipboard clipboard; struct { struct surface surface; + struct wp_viewport *wp_viewport; struct zwlr_layer_surface_v1 *zwlr_layer_surface; struct entry entry; uint32_t width; -- cgit v1.2.3