From nobody Sat Feb 17 10:56:58 2024 X-Original-To: freebsd-x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TcQjW3syVz5B3QZ for ; Sat, 17 Feb 2024 10:57:03 +0000 (UTC) (envelope-from freebsd-x11@dino.sk) Received: from cm0.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TcQjV20dmz43YD for ; Sat, 17 Feb 2024 10:57:02 +0000 (UTC) (envelope-from freebsd-x11@dino.sk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-x11@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-x11@dino.sk; dmarc=none Received: from zeta.dino.sk ([84.245.95.254]) (AUTH: LOGIN milan, TLS: TLSv1.3,256bits,TLS_AES_256_GCM_SHA384) by cm0.netlabit.sk with ESMTPSA id 0000000002BC7A5A.0000000065D090FC.0000456B; Sat, 17 Feb 2024 11:57:00 +0100 Date: Sat, 17 Feb 2024 11:56:58 +0100 From: Milan Obuch To: freebsd-x11@freebsd.org Subject: Re: Touch screen zoom - any method to disable? Message-ID: <20240217115658.6c56cce7@zeta.dino.sk> In-Reply-To: <2D733E37-4FC3-4CE9-93BB-973A130EBB3A@grem.de> References: <20240217111026.70b70ac5@zeta.dino.sk> <2D733E37-4FC3-4CE9-93BB-973A130EBB3A@grem.de> X-Mailer: Claws Mail 3.20.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4TcQjV20dmz43YD X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.11 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.81)[-0.810]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-x11@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[dino.sk]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[] On Sat, 17 Feb 2024 11:20:49 +0100 Michael Gmelin wrote: > > On 17. Feb 2024, at 11:10, Milan Obuch wrote: > >=20 > > =EF=BB=BFOn Fri, 16 Feb 2024 18:07:22 +0100 > > Michael Gmelin wrote: > > =20 > >>>> On 16. Feb 2024, at 13:35, Milan Obuch > >>>> wrote: =20 > >>>=20 > >>> =EF=BB=BFOn Fri, 16 Feb 2024 13:04:14 +0100 > >>> Michael Gmelin wrote: > >>> =20 > >>>>>> On 16. Feb 2024, at 12:46, Milan Obuch > >>>>>> wrote: =20 > >>>>>=20 > >>>>> =EF=BB=BFHi, > >>>>>=20 > >>>>> 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. > >>>>>=20 > >>>>> 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. > >>>>>=20 > >>>>> 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. =20 [ snip ] > >> Ok, this is a wild shot, but does > >>=20 > >> xinput disable 10 > >>=20 > >> help? > >> =20 > >=20 > > 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). =20 >=20 > 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