Skip to content

Commit 182404f

Browse files
authored
Wayland: Fix pasting to some XWayland apps (#2234)
Fixes #2233
1 parent d6c4582 commit 182404f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/platform/x11/systemclipboard/waylandclipboard.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <qtwaylandclientversion.h>
2222

2323
#include <errno.h>
24+
#include <fcntl.h>
2425
#include <poll.h>
2526
#include <signal.h>
2627
#include <string.h>
@@ -83,6 +84,8 @@ class SendThread : public QThread {
8384
sigemptyset(&action.sa_mask);
8485
action.sa_flags = 0;
8586
sigaction(SIGPIPE, &action, &oldAction);
87+
// Unset O_NONBLOCK
88+
fcntl(m_fd, F_SETFL, 0);
8689
const qint64 written = c.write(m_data);
8790
sigaction(SIGPIPE, &oldAction, nullptr);
8891
c.close();

0 commit comments

Comments
 (0)