diff --git a/src/managers/EventManager.cpp b/src/managers/EventManager.cpp index 8365c8c8..57824430 100644 --- a/src/managers/EventManager.cpp +++ b/src/managers/EventManager.cpp @@ -15,6 +15,7 @@ #include #include +#include CEventManager::CEventManager() {} @@ -139,7 +140,9 @@ void CEventManager::postEvent(const SHyprIPCEvent event) { } std::thread( - [&](const SHyprIPCEvent ev) { + [this](SHyprIPCEvent ev) { + std::replace(ev.data.begin(), ev.data.end(), '\n', ' '); + eventQueueMutex.lock(); m_dQueuedEvents.push_back(ev); eventQueueMutex.unlock();