commit bf9503a

muckywaffles  ·  2026-03-15 02:47:57 +0000 UTC
parent 2d53c6d
Bump data_device_manager

I also added stubs for some of the new requests.
This was preventing the foot terminal from launching.
2 files changed,  +37, -7
+35, -5
 1@@ -64,10 +64,30 @@ offer_receive(struct wl_client *client, struct wl_resource *offer,
 2 	close(fd);
 3 }
 4 
 5+static void
 6+offer_finish(struct wl_client *client, struct wl_resource *offer)
 7+{
 8+	(void)client;
 9+	(void)offer;
10+	/* TODO: Implement */
11+}
12+
13+static void
14+offer_set_actions(struct wl_client *client, struct wl_resource *offer, uint32_t dnd_actions, uint32_t preferred_action)
15+{
16+	(void)client;
17+	(void)offer;
18+	(void)dnd_actions;
19+	(void)preferred_action;
20+	/* TODO: Implement */
21+}
22+
23 static const struct wl_data_offer_interface data_offer_impl = {
24-    .accept = offer_accept,
25-    .receive = offer_receive,
26-    .destroy = destroy_resource,
27+	.accept = offer_accept,
28+	.receive = offer_receive,
29+	.destroy = destroy_resource,
30+	.finish = offer_finish,
31+	.set_actions = offer_set_actions,
32 };
33 
34 static void
35@@ -94,9 +114,19 @@ error0:
36 	wl_resource_post_no_memory(source);
37 }
38 
39+static void
40+source_set_actions(struct wl_client *client, struct wl_resource *resource, uint32_t dnd_actions)
41+{
42+	(void)client;
43+	(void)resource;
44+	(void)dnd_actions;
45+	/* TODO: Implement */
46+}
47+
48 static const struct wl_data_source_interface data_source_impl = {
49-    .offer = source_offer,
50-    .destroy = destroy_resource,
51+	.offer = source_offer,
52+	.destroy = destroy_resource,
53+	.set_actions = source_set_actions,
54 };
55 
56 static void
+2, -2
1@@ -73,6 +73,6 @@ bind_data_device_manager(struct wl_client *client, void *data, uint32_t version,
2 struct wl_global *
3 data_device_manager_create(struct wl_display *display)
4 {
5-	return wl_global_create(display, &wl_data_device_manager_interface, 2, NULL,
6-	                        &bind_data_device_manager);
7+	return wl_global_create(display, &wl_data_device_manager_interface, 3,
8+	                        NULL, &bind_data_device_manager);
9 }