We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6a14b commit 42e5501Copy full SHA for 42e5501
player/clipboard/clipboard-wayland.c
@@ -27,6 +27,8 @@
27
#include "osdep/poll_wrapper.h"
28
#include "osdep/threads.h"
29
30
+static const char MESSAGE_DEATH = 0;
31
+
32
struct clipboard_wayland_data_offer {
33
struct ext_data_control_offer_v1 *offer;
34
char *mime_type;
@@ -503,7 +505,7 @@ static void uninit(struct clipboard_ctx *cl)
503
505
struct clipboard_wayland_priv *priv = cl->priv;
504
506
if (!priv)
507
return;
- (void)write(priv->message_pipe[1], &(char){0}, 1);
508
+ (void)write(priv->message_pipe[1], &(char){MESSAGE_DEATH}, 1);
509
mp_thread_join(priv->thread);
510
close(priv->message_pipe[0]);
511
close(priv->message_pipe[1]);
0 commit comments