mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-15 20:13:49 -07:00
limit events on socket2 to 1024 chars
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user