It's not so nice. Print a warning instead.
Unified · Split
| @@ -2160,9 +2160,12 @@ static void check_fd(struct vo_wayland_state *wl, struct vo_wayland_data_offer * · 2159 unmodified lines | |||
| 2160 | if (o->offer) | 2160 | if (o->offer) |
| 2161 | wl_data_offer_finish(o->offer); | 2161 | wl_data_offer_finish(o->offer); |
| 2162 | 2162 | ||
| 2163 | assert(o->action >= 0); | 2163 | if (o->action >= 0) { |
| 2164 | mp_event_drop_mime_data(wl->vo->input_ctx, o->mime_type, | 2164 | mp_event_drop_mime_data(wl->vo->input_ctx, o->mime_type, |
| 2165 | content, o->action); | 2165 | content, o->action); |
| 2166 | } else { | ||
| 2167 | MP_WARN(wl, "Data offer did not have a valid action!\n"); | ||
| 2168 | } | ||
| 2166 | } else { | 2169 | } else { |
| 2167 | // Update clipboard text content | 2170 | // Update clipboard text content |
| 2168 | talloc_free(wl->selection_text.start); | 2171 | talloc_free(wl->selection_text.start); |