aboutsummaryrefslogtreecommitdiff
path: root/selection.h
blob: 8a8cae48b17ffbe1046ebccf1515b85f00e51ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <wayland-client.h>

#include "terminal.h"

extern const struct wl_data_device_listener data_device_listener;

void selection_start(struct terminal *term, int col, int row);
void selection_update(struct terminal *term, int col, int row);
void selection_finalize(struct terminal *term);
void selection_cancel(struct terminal *term);

void selection_to_clipboard(struct terminal *term, uint32_t serial);
void selection_from_clipboard(struct terminal *term, uint32_t serial);
void selection_from_primary(struct terminal *term);