File tightvnc-vncviewer-scrollbar.patch of Package tightvnc

--- vncviewer/Vncviewer
+++ vncviewer/Vncviewer
@@ -43,6 +43,18 @@
 *viewport.useRight: True
 *viewport*Scrollbar*thumb: None
 
+!
+! Override the confusing Xaw scrollbar button semantics
+!
+
+*Scrollbar.translations: #override\
+  <Btn1Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
+  <Btn1Motion>: MoveThumb() NotifyThumb() \n\
+  <Btn2Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
+  <Btn2Motion>: MoveThumb() NotifyThumb() \n\
+  <Btn3Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
+  <Btn3Motion>: MoveThumb() NotifyThumb() \n\
+  <BtnUp>: NotifyScroll(Proportional) EndScroll()
 
 !
 ! Default translations on desktop window.
--- vncviewer/argsresources.c
+++ vncviewer/argsresources.c
@@ -45,6 +45,15 @@
   "*viewport.useRight: True",
   "*viewport*Scrollbar*thumb: None",
 
+  "*Scrollbar.translations: #override\
+     <Btn1Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \\n\
+     <Btn1Motion>: MoveThumb() NotifyThumb() \\n\
+     <Btn2Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \\n\
+     <Btn2Motion>: MoveThumb() NotifyThumb() \\n\
+     <Btn3Down>: StartScroll(Continuous) MoveThumb() NotifyThumb() \\n\
+     <Btn3Motion>: MoveThumb() NotifyThumb() \\n\
+     <BtnUp>: NotifyScroll(Proportional) EndScroll()",
+
   "*desktop.baseTranslations:\
      <Key>F8: ShowPopup()\\n\
      <ButtonPress>: SendRFBEvent()\\n\
openSUSE Build Service is sponsored by