From 12079c98ba8f15321c2c604c2bae728ec72f15ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Mon, 17 Apr 2017 16:50:06 +0200 Subject: Ignore horizontal scrolling as it breaks things otherwise. It automatically got translated to a left click which broke the navigation in the file browser and the scrolling on the Slider. --- plugingui/nativewindow_x11.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugingui/nativewindow_x11.cc') 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(); -- cgit v1.2.3