fix(eventloop): Acquire lock guard

This commit is contained in:
Michael Carlberg
2016-12-14 19:04:33 +01:00
parent e11798253a
commit 4c36d65cbe
3 changed files with 10 additions and 10 deletions

View File

@ -209,10 +209,10 @@ namespace modules {
m_log.info("%s: Sending workspace focus command to ipc handler", name());
conn.send_command("workspace number " + workspace_num);
}
} else if (cmd.compare(0, strlen(EVENT_SCROLL_DOWN), EVENT_SCROLL_DOWN) == 0) {
scrolldir = m_revscroll ? "next" : "prev";
} else if (cmd.compare(0, strlen(EVENT_SCROLL_UP), EVENT_SCROLL_UP) == 0) {
scrolldir = m_revscroll ? "prev" : "next";
} else if (cmd.compare(0, strlen(EVENT_SCROLL_DOWN), EVENT_SCROLL_DOWN) == 0) {
scrolldir = m_revscroll ? "next" : "prev";
} else {
return false;
}