diff options
author | Sebastian Wick <sebastian@sebastianwick.net> | 2019-04-09 12:18:25 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-06-19 07:44:51 +0000 |
commit | 5b1bf9724501e541e3880fa21c61d84385a5c1c5 (patch) | |
tree | b5806e4369476e6876461c4379b7195f2fb1af36 | |
parent | f76cf8a5b775c637657c0bfbd7334e46001ac405 (diff) | |
download | weston-5b1bf9724501e541e3880fa21c61d84385a5c1c5.tar.gz |
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 1bdf36329557e6c846d5e51856eb8da00504212a)
-rw-r--r-- | clients/terminal.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/clients/terminal.c b/clients/terminal.c index ebc5bbe2..adc682fa 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"; |