summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorSebastian Wick <sebastian@sebastianwick.net>2019-04-09 12:18:25 +0200
committerDaniel Stone <daniel@fooishbar.org>2019-04-20 10:57:06 +0000
commit1bdf36329557e6c846d5e51856eb8da00504212a (patch)
tree6181433185378241d430ac1d054068681db0af47 /clients
parent43152a3a8fa1e3164db33ac7ace105186c5e8ac8 (diff)
downloadweston-1bdf36329557e6c846d5e51856eb8da00504212a.tar.gz
weston-1bdf36329557e6c846d5e51856eb8da00504212a.tar.bz2
weston-1bdf36329557e6c846d5e51856eb8da00504212a.zip
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>
Diffstat (limited to 'clients')
-rw-r--r--clients/terminal.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/clients/terminal.c b/clients/terminal.c
index f7546ede..f7e9ba95 100644
--- a/clients/terminal.c
+++ b/clients/terminal.c
@@ -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";