shithub: drawterm

Download patch

ref: 05c9c55ff13ef53c5033c409064ccaf883cf001a
parent: 46877c21313943940e821259e8b3b8f6b3d897aa
author: Jacob Moody <[email protected]>
date: Sat Mar 18 01:10:14 EDT 2023

gui-wl: fix crash when drag and dropping over drawterm

--- a/gui-wl/wl-cb.c
+++ b/gui-wl/wl-cb.c
@@ -553,11 +553,34 @@
 };
 
 static void
+data_device_drop_enter(void* data, struct wl_data_device* wl_data_device, uint serial, struct wl_surface* surface, wl_fixed_t x, wl_fixed_t y, struct wl_data_offer* id)
+{
+
+}
+
+static void
+data_device_drop_motion(void* data, struct wl_data_device* wl_data_device, uint time, wl_fixed_t x, wl_fixed_t y)
+{
+
+}
+
+static void
+data_device_drop_leave(void* data, struct wl_data_device* wl_data_device)
+{
+
+}
+
+static void
 data_device_handle_data_offer(void *data, struct wl_data_device *data_device, struct wl_data_offer *offer)
 {
 }
 
 static void
+data_device_drop_drop(void* data, struct wl_data_device* wl_data_device)
+{
+}
+
+static void
 data_device_handle_selection(void *data, struct wl_data_device *data_device, struct wl_data_offer *offer)
 {
 	Wlwin *wl;
@@ -597,6 +620,10 @@
 static const struct wl_data_device_listener data_device_listener = {
 	.data_offer = data_device_handle_data_offer,
 	.selection = data_device_handle_selection,
+	.leave = data_device_drop_leave,
+	.motion = data_device_drop_motion,
+	.enter = data_device_drop_enter,
+	.drop = data_device_drop_drop,
 };
 
 static void