aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/EventManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/EventManager.cpp')
-rw-r--r--src/managers/EventManager.cpp5
1 files changed, 4 insertions, 1 deletions
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 <sys/ioctl.h>
#include <string>
+#include <algorithm>
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();