Re: Touch screen zoom - any method to disable?

Milan Obuch <[email protected]>
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]>
On Sat, 17 Feb 2024 11:20:49 +0100
Michael Gmelin <[email protected]> wrote:

> > On 17. Feb 2024, at 11:10, Milan Obuch <[email protected]> wrote:
> > 
> > On Fri, 16 Feb 2024 18:07:22 +0100
> > Michael Gmelin <[email protected]> wrote:
> >   
> >>>> On 16. Feb 2024, at 13:35, Milan Obuch <[email protected]>
> >>>> wrote:  
> >>> 
> >>> On Fri, 16 Feb 2024 13:04:14 +0100
> >>> Michael Gmelin <[email protected]> wrote:
> >>>   
> >>>>>> On 16. Feb 2024, at 12:46, Milan Obuch <[email protected]>
> >>>>>> wrote:    
> >>>>> 
> >>>>> Hi,
> >>>>> 
> >>>>> I have a terminal with touch screen running luakit with custom
> >>>>> application. Basically, it works as intended, however, sometimes
> >>>>> user unknowingly zooms into part of screen.
> >>>>> 
> >>>>> While relatively easy, all that's necessary is unzoom it using
> >>>>> two fingers (the same way as used on smartphones), it scares
> >>>>> this user a bit. So the best way to handle it would be not
> >>>>> allowing zoom to occur.
> >>>>> 
> >>>>> Is there a method to do this? Some configuration of X? My setup
> >>>>> uses webcamd to create event file for touch screen and libinput
> >>>>> driver to handle input event in X.      

[ snip ]

> >> Ok, this is a wild shot, but does
> >> 
> >>  xinput disable 10
> >> 
> >> help?
> >>   
> > 
> > No. Actually, it is my main keyboard device, PS/2 connected via KVM
> > switch via USB to PS/2 converter, and disabling it just disabled
> > keyboard input (I have spare USB keyboard here so I was prepared for
> > this, I was able to enable it after test). Zoom via touchscreen two
> > finger gesture still worked (and unzoom as well).  
> 
> Could you run xev while pinching and see which events are generated?

After installing x11/xev, trying xev, I see a bunch of events being
reported. Not easy to navigate through :)

However, doing some more tests, I found it is probably somehow handled
a bit higher - this zoom feature is not available in terminal, mailer,
pdf viewer. I can use it in all browsers I use - minibrowser from GTK
port, badwolf and luakit. In xev, I see just ButtonPress, sequence of
MotionNotify, ButtonRelease events. Maybe if I can attach xev to
browser window, things could be somewhat different, question is how can
find window id I can use in xev invocation.

Regards,
Milan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.