Skip to content

Commit

Permalink
Merge pull request #935 from alebastr/ignore-emulated-scroll-events
Browse files Browse the repository at this point in the history
fix(sway/workspaces): ignore emulated scroll events
  • Loading branch information
Alexays authored Dec 5, 2020
2 parents 930bb4b + 68b6136 commit f91dc7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/sway/workspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,12 @@ std::string Workspaces::getIcon(const std::string &name, const Json::Value &node
}

bool Workspaces::handleScroll(GdkEventScroll *e) {
if (gdk_event_get_pointer_emulated((GdkEvent *)e)) {
/**
* Ignore emulated scroll events on window
*/
return false;
}
auto dir = AModule::getScrollDir(e);
if (dir == SCROLL_DIR::NONE) {
return true;
Expand Down

0 comments on commit f91dc7f

Please sign in to comment.