neuswc

patched neuswc library (tracked)
git clone https://git.daat.foo/neuswc.git
Log | Files | Refs | README | LICENSE

commit bf9503ad5088c14dd175c95b7cd298e8bfe23976
parent 2d53c6d23e3f63ddc72335cc61000f2f05830beb
Author: muckywaffles <waffles@mucky.me>
Date:   Sun, 15 Mar 2026 02:47:57 +0000

Bump data_device_manager

I also added stubs for some of the new requests.
This was preventing the foot terminal from launching.

Diffstat:
Mlibswc/data.c | 40+++++++++++++++++++++++++++++++++++-----
Mlibswc/data_device_manager.c | 4++--
2 files changed, 37 insertions(+), 7 deletions(-)

diff --git a/libswc/data.c b/libswc/data.c @@ -64,10 +64,30 @@ offer_receive(struct wl_client *client, struct wl_resource *offer, close(fd); } +static void +offer_finish(struct wl_client *client, struct wl_resource *offer) +{ + (void)client; + (void)offer; + /* TODO: Implement */ +} + +static void +offer_set_actions(struct wl_client *client, struct wl_resource *offer, uint32_t dnd_actions, uint32_t preferred_action) +{ + (void)client; + (void)offer; + (void)dnd_actions; + (void)preferred_action; + /* TODO: Implement */ +} + static const struct wl_data_offer_interface data_offer_impl = { - .accept = offer_accept, - .receive = offer_receive, - .destroy = destroy_resource, + .accept = offer_accept, + .receive = offer_receive, + .destroy = destroy_resource, + .finish = offer_finish, + .set_actions = offer_set_actions, }; static void @@ -94,9 +114,19 @@ error0: wl_resource_post_no_memory(source); } +static void +source_set_actions(struct wl_client *client, struct wl_resource *resource, uint32_t dnd_actions) +{ + (void)client; + (void)resource; + (void)dnd_actions; + /* TODO: Implement */ +} + static const struct wl_data_source_interface data_source_impl = { - .offer = source_offer, - .destroy = destroy_resource, + .offer = source_offer, + .destroy = destroy_resource, + .set_actions = source_set_actions, }; static void diff --git a/libswc/data_device_manager.c b/libswc/data_device_manager.c @@ -73,6 +73,6 @@ bind_data_device_manager(struct wl_client *client, void *data, uint32_t version, struct wl_global * data_device_manager_create(struct wl_display *display) { - return wl_global_create(display, &wl_data_device_manager_interface, 2, NULL, - &bind_data_device_manager); + return wl_global_create(display, &wl_data_device_manager_interface, 3, + NULL, &bind_data_device_manager); }