selection: track selection type; normal or block selection

This commit is contained in:
Daniel Eklöf 2020-01-03 23:29:45 +01:00
parent 1178a7763b
commit d706e68280
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 18 additions and 7 deletions

View file

@ -9,7 +9,8 @@ extern const struct wl_data_device_listener data_device_listener;
extern const struct zwp_primary_selection_device_v1_listener primary_selection_device_listener;
bool selection_enabled(const struct terminal *term);
void selection_start(struct terminal *term, int col, int row);
void selection_start(
struct terminal *term, int col, int row, enum selection_kind kind);
void selection_update(struct terminal *term, int col, int row);
void selection_finalize(struct terminal *term, uint32_t serial);
void selection_cancel(struct terminal *term);