diff options
author | Phil Jones <philj56@gmail.com> | 2022-11-19 10:30:18 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-11-19 10:30:18 +0000 |
commit | 0855afdb1ea7734501914679e50be3d324744d83 (patch) | |
tree | c555146e550b856bcfd9c5dfcb11fb781772caf7 /src/tofi.h | |
parent | 1d72d4f2ec9a44dc5f524de018ca3a9fc2911ff0 (diff) |
Add support for pasting from clipboard.
Diffstat (limited to 'src/tofi.h')
-rw-r--r-- | src/tofi.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3,7 +3,9 @@ #include <stdbool.h> #include <stdint.h> +#include <wayland-client.h> #include <xkbcommon/xkbcommon.h> +#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; |