From b07d30e30de90f7cb17e7e91ed71ac5af9326722 Mon Sep 17 00:00:00 2001 From: Riley Beckett Date: Thu, 23 Oct 2025 23:21:22 -0400 Subject: replace all spaces with tabs for indentation --- data-device.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'data-device.c') diff --git a/data-device.c b/data-device.c index 3d04f1e..09926f6 100644 --- a/data-device.c +++ b/data-device.c @@ -9,7 +9,7 @@ void setup_data_device(client_state* state) { } static void data_offer_handle_offer(void *data, struct wl_data_offer *offer, - const char *mime_type) { + const char *mime_type) { } static const struct wl_data_offer_listener data_offer_listener = { @@ -17,13 +17,13 @@ static const struct wl_data_offer_listener data_offer_listener = { }; static void data_device_handle_data_offer(void *data, - struct wl_data_device *data_device, struct wl_data_offer *offer) { + struct wl_data_device *data_device, struct wl_data_offer *offer) { // An application has created a new data source wl_data_offer_add_listener(offer, &data_offer_listener, NULL); } static void data_device_handle_selection(void *data, - struct wl_data_device *data_device, struct wl_data_offer *offer) { + struct wl_data_device *data_device, struct wl_data_offer *offer) { client_state *state = data; state->data_offer = offer; @@ -64,11 +64,11 @@ static void data_device_handle_selection(void *data, state->clipboard_size = current_clip; // we don't need the ACTUAL length of the buffer anymore, just the string :D // remove newlines int i, j; - for (i = 0, j = 0; i < state->clipboard_size; i++) { - if (state->clipboard[i] != '\n' && state->clipboard[i] != '\r') { - state->clipboard[j++] = state->clipboard[i]; - } - } + for (i = 0, j = 0; i < state->clipboard_size; i++) { + if (state->clipboard[i] != '\n' && state->clipboard[i] != '\r') { + state->clipboard[j++] = state->clipboard[i]; + } + } state->clipboard_size = j; wl_data_offer_destroy(offer); -- cgit v1.2.3