From ea8028332ced7ef61e755742ad9e91586e3193e3 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Sat, 20 Nov 2021 17:39:19 +0100 Subject: [PATCH] Synchronize computer-to-device empty clipboard Set the device clipboard to empty string if necessary. Otherwise, the current device clipboard will be pasted on Ctrl+v. PR #2814 --- app/src/input_manager.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/input_manager.c b/app/src/input_manager.c index b84f3bea..6158f6d2 100644 --- a/app/src/input_manager.c +++ b/app/src/input_manager.c @@ -215,11 +215,6 @@ set_device_clipboard(struct controller *controller, bool paste) { LOGW("Could not get clipboard text: %s", SDL_GetError()); return; } - if (!*text) { - // empty text - SDL_free(text); - return; - } char *text_dup = strdup(text); SDL_free(text);