mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 00:49:48 +01:00
limit events on socket2 to 1024 chars
This commit is contained in:
parent
29ca7f9018
commit
6f2a36c123
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ void CEventManager::startThread() {
|
|||
for (auto& ev : m_dQueuedEvents) {
|
||||
std::string eventString = ev.event + ">>" + ev.data + "\n";
|
||||
for (auto& fd : m_dAcceptedSocketFDs) {
|
||||
write(fd, eventString.c_str(), eventString.length());
|
||||
write(fd, eventString.substr(0, 1023).c_str(), eventString.length());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue