Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2020 12:00:48 +0200
From:      Niclas Zeising <zeising+freebsd@daemonic.se>
To:        Michael Gmelin <freebsd@grem.de>, Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        Malcolm Matalka <mmatalka@gmail.com>, "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: Weird mouse behaviour
Message-ID:  <c6a0ebf6-397d-3e08-3b23-1fff31c48f76@daemonic.se>
In-Reply-To: <20200427112947.1115d323@bsd64.grem.de>
References:  <76670.1587970466@critter.freebsd.dk> <7549A5DD-3EDC-4EFD-BC0B-4D67232B43BB@grem.de> <51747.1587972365@critter.freebsd.dk> <65670198-e725-5b66-646c-5b147c943cd9@daemonic.se> <52002.1587976130@critter.freebsd.dk> <20200427112947.1115d323@bsd64.grem.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-04-27 11:29, Michael Gmelin wrote:
> 
> 
> On Mon, 27 Apr 2020 08:28:50 +0000
> "Poul-Henning Kamp" <phk@phk.freebsd.dk> wrote:
> 
>> --------
>> In message <65670198-e725-5b66-646c-5b147c943cd9@daemonic.se>, Niclas
>> Zeising writes:
>>
>>> With my touchpad, ctrl left click and ctrl right click opens two
>>> different menus in xterm, main menu and vt font menu, respectively.
>>
>> ctrl-middle should open "VT Options"
>>
> 
> I could reproduce this on my laptop and found the fix.
> 
> The problem is, that the middle mouse button only generates a key
> press/key release event pair once its released (can be seen using xev
> and `libinput debug-events').
> 
> This is caused by the trackpoint driver using one-button scrolling by
> default (that is, you can hold the middle mouse button and move the
> trackpoint - even though this didn't work for me).
> 
> You can disable on-button scrolling using xinput, e.g.
> 
> xinput set-prop 'TPPS/2 IBM TrackPoint' \
>    'libinput Scroll Method Enabled' 0 0 0
> 
> After this, Ctrl+middle works as expected in xterm.
> 
> Note: Check `xinput' output to get the correct device name for your
> trackpoint (you can also use its numeric identifier, but the name is
> supposed to be more stable).

Nice catch!
I tried looking at xev myself, but apparently, I didn't look closely 
enough.  Now when I know what to look for, I see it clearly.
Thanks for your help!
Regards
-- 
Niclas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c6a0ebf6-397d-3e08-3b23-1fff31c48f76>