mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04:00
selection: disable source listeners, since we don't currently use them
This commit is contained in:
parent
66e067082b
commit
6cd23654cc
1 changed files with 8 additions and 0 deletions
|
|
@ -470,6 +470,7 @@ selection_from_primary(struct terminal *term)
|
||||||
close(read_fd);
|
close(read_fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static void
|
static void
|
||||||
offer(void *data, struct wl_data_offer *wl_data_offer, const char *mime_type)
|
offer(void *data, struct wl_data_offer *wl_data_offer, const char *mime_type)
|
||||||
{
|
{
|
||||||
|
|
@ -491,6 +492,7 @@ static const struct wl_data_offer_listener data_offer_listener = {
|
||||||
.source_actions = &source_actions,
|
.source_actions = &source_actions,
|
||||||
.action = &offer_action,
|
.action = &offer_action,
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
data_offer(void *data, struct wl_data_device *wl_data_device,
|
data_offer(void *data, struct wl_data_device *wl_data_device,
|
||||||
|
|
@ -534,8 +536,10 @@ selection(void *data, struct wl_data_device *wl_data_device,
|
||||||
wl_data_offer_destroy(clipboard->data_offer);
|
wl_data_offer_destroy(clipboard->data_offer);
|
||||||
|
|
||||||
clipboard->data_offer = id;
|
clipboard->data_offer = id;
|
||||||
|
#if 0
|
||||||
if (id != NULL)
|
if (id != NULL)
|
||||||
wl_data_offer_add_listener(id, &data_offer_listener, term);
|
wl_data_offer_add_listener(id, &data_offer_listener, term);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct wl_data_device_listener data_device_listener = {
|
const struct wl_data_device_listener data_device_listener = {
|
||||||
|
|
@ -547,6 +551,7 @@ const struct wl_data_device_listener data_device_listener = {
|
||||||
.selection = &selection,
|
.selection = &selection,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if 0
|
||||||
static void
|
static void
|
||||||
primary_offer(void *data,
|
primary_offer(void *data,
|
||||||
struct zwp_primary_selection_offer_v1 *zwp_primary_selection_offer,
|
struct zwp_primary_selection_offer_v1 *zwp_primary_selection_offer,
|
||||||
|
|
@ -557,6 +562,7 @@ primary_offer(void *data,
|
||||||
static const struct zwp_primary_selection_offer_v1_listener primary_selection_offer_listener = {
|
static const struct zwp_primary_selection_offer_v1_listener primary_selection_offer_listener = {
|
||||||
.offer = &primary_offer,
|
.offer = &primary_offer,
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
primary_data_offer(void *data,
|
primary_data_offer(void *data,
|
||||||
|
|
@ -579,10 +585,12 @@ primary_selection(void *data,
|
||||||
zwp_primary_selection_offer_v1_destroy(primary->data_offer);
|
zwp_primary_selection_offer_v1_destroy(primary->data_offer);
|
||||||
|
|
||||||
primary->data_offer = id;
|
primary->data_offer = id;
|
||||||
|
#if 0
|
||||||
if (id != NULL) {
|
if (id != NULL) {
|
||||||
zwp_primary_selection_offer_v1_add_listener(
|
zwp_primary_selection_offer_v1_add_listener(
|
||||||
id, &primary_selection_offer_listener, term);
|
id, &primary_selection_offer_listener, term);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct zwp_primary_selection_device_v1_listener primary_selection_device_listener = {
|
const struct zwp_primary_selection_device_v1_listener primary_selection_device_listener = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue