From owner-freebsd-x11@freebsd.org Thu Apr 15 18:54:05 2021 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 294CB5D2D25 for ; Thu, 15 Apr 2021 18:54:05 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FLpR00zQhz4jkk for ; Thu, 15 Apr 2021 18:54:03 +0000 (UTC) (envelope-from ronald-lists@klop.ws) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=klop.ws; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zwESsgFoQ4JHeG1hsKcTYIgKItWnh3Y62MEMzW8e9A0=; b=lmjXh3sKG9WN3Yux8Sugd6lCdP 8iFe7CE0yvclhQnoSYSAC7sIvgAow22SfFEqIXBQRGvjWDS3p/wrF7Ipb8pU7CRhki3NgmOILV6Vp +grfWklEJuF+05YXOHDScebXgEC5DqxZTosFMeWU8xXxkNANtq4wYq0EZv3okHCHMXTY=; Subject: (solved) Re: mouse scrolling activates back/forward in browser To: freebsd-x11@freebsd.org References: From: Ronald Klop Message-ID: <717e4ad7-07f5-c5fa-9f16-832eb724dc48@klop.ws> Date: Thu, 15 Apr 2021 20:53:36 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.greenhost.nl X-Scan-Signature: d9f3db317ab1ee7b8924288085c8cee5 X-Rspamd-Queue-Id: 4FLpR00zQhz4jkk X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=mail header.b=lmjXh3sK; dmarc=pass (policy=none) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-4.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[klop.ws:s=mail]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[klop.ws:+]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,none]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_VERYGOOD(0.00)[195.190.28.88:from]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-x11] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2021 18:54:05 -0000 On 4/15/21 9:53 AM, Ronald Klop wrote: > Hi, > > When I use the scrollwheel of the mouse my browser triggers > back/forward. What happens is this: > If I scroll up (button 4) after scrolling down (button 5) it triggers > button 8 and 9. > I see it generating a ButtonPress 8/9 if I go down and than up. And a > ButtonRelease 8/9 if I first go up and than down. > > I have no config in /etc/X11. Xorg logs: https://www.klop.ws/Xorg.0.log > > This happens on the trackpad of the laptop and with a bluetooth > connected mouse. > What makes it a little more complex is that this is running FreeBSD 14 > in VirtualBox on Windows 10 with. NB: It happened in Virtualbox 5 and > now in 6 also. > > This started around a year ago. > https://lists.freebsd.org/pipermail/freebsd-ports/2020-March/117879.html > But didn't have time to look into it. > > Any thoughts or similar experiences? > > Regards, > Ronald. Some more googling found this: https://forums.freebsd.org/threads/mouse-wheel-strange-behavior-with-firefox.57494/ Just removed button 8 and 9. xmodmap -e "pointer = 1 2 3 4 5 6 7 0 0 10 11 12" Still don't understand the root cause of this, but this helps a lot. Regards, Ronald. > > > Output of xev: > > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x3200002, time 183573903, (25,45), root:(968,1279), >    state 0x1000, button 5, same_screen YES > > LeaveNotify event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x0, time 183573903, (25,45), root:(968,1279), >    mode NotifyUngrab, detail NotifyInferior, same_screen YES, >    focus YES, state 0 > > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x3200002, time 183575432, (25,45), root:(968,1279), >    state 0x0, button 5, same_screen YES > > EnterNotify event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x0, time 183575432, (25,45), root:(968,1279), >    mode NotifyGrab, detail NotifyInferior, same_screen YES, >    focus YES, state 4096 > > KeymapNotify event, serial 38, synthetic NO, window 0x0, >    keys:  29  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 >           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 > > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x3200002, time 183575432, (25,45), root:(968,1279), >    state 0x1000, button 5, same_screen YES > > LeaveNotify event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x0, time 183575432, (25,45), root:(968,1279), >    mode NotifyUngrab, detail NotifyInferior, same_screen YES, >    focus YES, state 0 > > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x3200002, time 183576483, (25,45), root:(968,1279), >    state 0x0, button 4, same_screen YES > > EnterNotify event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x0, time 183576483, (25,45), root:(968,1279), >    mode NotifyGrab, detail NotifyInferior, same_screen YES, >    focus YES, state 2048 > > KeymapNotify event, serial 38, synthetic NO, window 0x0, >    keys:  29  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 >           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 > > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x3200002, time 183576483, (25,45), root:(968,1279), >    state 0x800, button 4, same_screen YES > > LeaveNotify event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x0, time 183576483, (25,45), root:(968,1279), >    mode NotifyUngrab, detail NotifyInferior, same_screen YES, >    focus YES, state 0 > > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x3200002, time 183576483, (25,45), root:(968,1279), >    state 0x0, button 8, same_screen YES > > EnterNotify event, serial 38, synthetic NO, window 0x3200001, >    root 0x51d, subw 0x0, time 183576483, (25,45), root:(968,1279), >    mode NotifyGrab, detail NotifyInferior, same_screen YES, >    focus YES, state 0 > > KeymapNotify event, serial 38, synthetic NO, window 0x0, >    keys:  29  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 >           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 > > > > $ xev | grep -i button # for a shorter list > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 5, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x1000, button 5, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 5, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x1000, button 5, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 5, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x1000, button 5, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 5, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x1000, button 5, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 4, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x800, button 4, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 8, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 9, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 4, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x800, button 4, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 4, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x800, button 4, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 4, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x800, button 4, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 4, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x800, button 4, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 4, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x800, button 4, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 4, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x800, button 4, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 5, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x1000, button 5, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 8, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 9, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 5, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x1000, button 5, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 5, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x1000, button 5, same_screen YES > ButtonPress event, serial 38, synthetic NO, window 0x3200001, >    state 0x0, button 5, same_screen YES > ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >    state 0x1000, button 5, same_screen YES > _______________________________________________ > freebsd-x11@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"