refactor: get rid of some mutex

This commit is contained in:
Alex
2019-06-15 15:01:03 +02:00
parent 340ec7be91
commit 90a9c0e25f
2 changed files with 0 additions and 4 deletions

View File

@ -88,9 +88,6 @@ AModule::SCROLL_DIR AModule::getScrollDir(GdkEventScroll* e) {
}
bool AModule::handleScroll(GdkEventScroll* e) {
// Avoid concurrent scroll event
std::lock_guard<std::mutex> lock(mutex_);
auto dir = getScrollDir(e);
if (dir == SCROLL_DIR::UP && config_["on-scroll-up"].isString()) {
pid_.push_back(util::command::forkExec(config_["on-scroll-up"].asString()));