From 1fea9897bfba2098c152a68ececca4d89e6e4946 Mon Sep 17 00:00:00 2001 From: Lukas Holecek Date: Wed, 18 Jan 2023 09:58:40 +0100 Subject: [PATCH] Wayland: Fix pasting to some XWayland apps Fixes #2233 --- src/platform/x11/systemclipboard/waylandclipboard.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platform/x11/systemclipboard/waylandclipboard.cpp b/src/platform/x11/systemclipboard/waylandclipboard.cpp index 09551bbdcd..fc55e29683 100644 --- a/src/platform/x11/systemclipboard/waylandclipboard.cpp +++ b/src/platform/x11/systemclipboard/waylandclipboard.cpp @@ -21,6 +21,7 @@ #include #include +#include #include #include #include @@ -83,6 +84,8 @@ class SendThread : public QThread { sigemptyset(&action.sa_mask); action.sa_flags = 0; sigaction(SIGPIPE, &action, &oldAction); + // Unset O_NONBLOCK + fcntl(m_fd, F_SETFL, 0); const qint64 written = c.write(m_data); sigaction(SIGPIPE, &oldAction, nullptr); c.close();