summaryrefslogtreecommitdiff
path: root/src/tofi.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2023-03-03 00:28:53 +0000
committerPhil Jones <philj56@gmail.com>2023-03-03 00:28:53 +0000
commit828744849d0b41d0b65db4f0bcb9be7e8698fdd0 (patch)
tree07e5046a244baf6efd10548bd8200bae09db1234 /src/tofi.h
parent570ea4ab9e7f8e3cb71dba199cb8fb46e1f58cdb (diff)
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.
Diffstat (limited to 'src/tofi.h')
-rw-r--r--src/tofi.h2
1 files changed, 2 insertions, 0 deletions
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;