[PATCH libXaw] Scrollbar.c: Add Btn4 & Btn5 to default translations
Roberto Branciforti
rbbrnc at gmail.com
Wed Jan 19 12:20:59 PST 2011
Add default translations to handle mouse wheel events for moving the
scrollbar.
Signed-off-by: Roberto Branciforti <rbbrnc at gmail.com>
---
src/Scrollbar.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/Scrollbar.c b/src/Scrollbar.c
index 894a945..5e4fdcf 100644
--- a/src/Scrollbar.c
+++ b/src/Scrollbar.c
@@ -102,6 +102,8 @@ static char defaultTranslations[] =
"<Btn1Down>:" "StartScroll(Forward)\n"
"<Btn2Down>:" "StartScroll(Continuous) MoveThumb() NotifyThumb()\n"
"<Btn3Down>:" "StartScroll(Backward)\n"
+"<Btn4Down>:" "StartScroll(Backward)\n"
+"<Btn5Down>:" "StartScroll(Forward)\n"
"<Btn2Motion>:" "MoveThumb() NotifyThumb()\n"
"<BtnUp>:" "NotifyScroll(Proportional) EndScroll()\n";
--
1.6.4
More information about the xorg-devel
mailing list