[PATCH libXaw] Scrollbar.c: Add Btn4 & Btn5 to default translations

Alan Coopersmith alan.coopersmith at oracle.com
Sun May 6 01:59:17 UTC 2018


Sorry for letting this get lost in our massive backlog, but it seemed to work
well a quick test with xmore so I've pushed it to git master now:

To ssh://git.freedesktop.org/git/xorg/lib/libXaw
   5a39226..2f298ec  master -> master

Thanks for the patch!

On 01/19/11 12:20 PM, Roberto Branciforti wrote:
> 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";
>  
> 


-- 
	-Alan Coopersmith-               alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - https://blogs.oracle.com/alanc


More information about the xorg-devel mailing list