move ignore to eventmanager and fix double focus in changeworkspace

This commit is contained in:
vaxerski
2022-06-21 22:17:30 +02:00
parent ff49f22440
commit 4a3f9ccba2
4 changed files with 12 additions and 12 deletions

View File

@@ -105,6 +105,12 @@ void CEventManager::startThread() {
}
void CEventManager::postEvent(const SHyprIPCEvent event) {
if (m_bIgnoreEvents) {
Debug::log(WARN, "Suppressed (ignoreevents true) event of type %s, content: %s");
return;
}
std::thread([&](const SHyprIPCEvent ev) {
eventQueueMutex.lock();
m_dQueuedEvents.push_back(ev);