summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugingui/nativewindow_x11.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/nativewindow_x11.cc b/plugingui/nativewindow_x11.cc
index 989da4e..af2f4a6 100644
--- a/plugingui/nativewindow_x11.cc
+++ b/plugingui/nativewindow_x11.cc
@@ -351,6 +351,11 @@ void NativeWindowX11::translateXMessage(XEvent& xevent)
scrollEvent->delta = scroll * ((xevent.xbutton.button == 4) ? -1 : 1);
event_queue.push_back(scrollEvent);
}
+ else if ((xevent.xbutton.button == 6) || (xevent.xbutton.button == 7))
+ {
+ // Horizontal scrolling case
+ // FIXME Introduce horizontal scrolling event to handle this.
+ }
else
{
auto buttonEvent = std::make_shared<ButtonEvent>();