mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
weston-terminal: Fix weston-terminal crash on mutter
Set up handlers for wl_data_source v3 events
Signed-off-by: Sebastian Wick <sebastian@sebastianwick.net>
(cherry picked from commit 1bdf363295)
This commit is contained in:
parent
f76cf8a5b7
commit
5b1bf97245
1 changed files with 20 additions and 1 deletions
|
|
@ -2207,10 +2207,29 @@ data_source_cancelled(void *data, struct wl_data_source *source)
|
|||
wl_data_source_destroy(source);
|
||||
}
|
||||
|
||||
static void
|
||||
data_source_dnd_drop_performed(void *data, struct wl_data_source *source)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
data_source_dnd_finished(void *data, struct wl_data_source *source)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
data_source_action(void *data,
|
||||
struct wl_data_source *source, uint32_t dnd_action)
|
||||
{
|
||||
}
|
||||
|
||||
static const struct wl_data_source_listener data_source_listener = {
|
||||
data_source_target,
|
||||
data_source_send,
|
||||
data_source_cancelled
|
||||
data_source_cancelled,
|
||||
data_source_dnd_drop_performed,
|
||||
data_source_dnd_finished,
|
||||
data_source_action
|
||||
};
|
||||
|
||||
static const char text_mime_type[] = "text/plain;charset=utf-8";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue