mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: get rid of some mutex
This commit is contained in:
@ -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()));
|
||||
|
Reference in New Issue
Block a user