Skip to content

Commit

Permalink
I hate wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
Slackadays committed May 10, 2023
1 parent 67cba74 commit 8269acc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cbwayland/src/fd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ class PipeFd {
* A stream buffer that reads and writes from a pair of file descriptors.
*/
class FdBuffer : public std::streambuf {
static constexpr std::size_t bufferSize = 1024;
static constexpr std::size_t bufferSize = 16384;
// 16384 is the magic number
// any lower and you get incomplete clipboard transfers
// higher, also incomplete clipboard transfers

int m_readFd;
int m_writeFd;
Expand Down

0 comments on commit 8269acc

Please sign in to comment.