mirror of
https://github.com/rad4day/Waybar.git
synced 2025-08-04 22:52:51 +02:00
format
This commit is contained in:
@@ -102,7 +102,7 @@ AModule::SCROLL_DIR AModule::getScrollDir(GdkEventScroll* e) {
|
|||||||
bool reverse_mouse = config_["reverse-mouse-scrolling"].asBool();
|
bool reverse_mouse = config_["reverse-mouse-scrolling"].asBool();
|
||||||
|
|
||||||
// ignore reverse-scrolling if event comes from a mouse wheel
|
// ignore reverse-scrolling if event comes from a mouse wheel
|
||||||
GdkDevice* device = gdk_event_get_source_device((GdkEvent *)e);
|
GdkDevice* device = gdk_event_get_source_device((GdkEvent*)e);
|
||||||
if (device != NULL && gdk_device_get_source(device) == GDK_SOURCE_MOUSE) {
|
if (device != NULL && gdk_device_get_source(device) == GDK_SOURCE_MOUSE) {
|
||||||
reverse = reverse_mouse;
|
reverse = reverse_mouse;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user