From 0855afdb1ea7734501914679e50be3d324744d83 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sat, 19 Nov 2022 10:30:18 +0000 Subject: Add support for pasting from clipboard. --- src/tofi.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tofi.h') diff --git a/src/tofi.h b/src/tofi.h index d558a9b..1608314 100644 --- a/src/tofi.h +++ b/src/tofi.h @@ -3,7 +3,9 @@ #include #include +#include #include +#include "clipboard.h" #include "color.h" #include "entry.h" #include "image.h" @@ -30,6 +32,8 @@ struct tofi { struct wl_compositor *wl_compositor; struct wl_seat *wl_seat; struct wl_shm *wl_shm; + struct wl_data_device_manager *wl_data_device_manager; + struct wl_data_device *wl_data_device; struct zwlr_layer_shell_v1 *zwlr_layer_shell; struct wl_list output_list; struct output_list_element *default_output; @@ -49,6 +53,7 @@ struct tofi { bool closed; int32_t output_width; int32_t output_height; + struct clipboard clipboard; struct { struct surface surface; struct zwlr_layer_surface_v1 *zwlr_layer_surface; -- cgit v1.2.3