From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: libinput support in Eamcs? Date: Mon, 6 Aug 2018 22:28:35 +0100 Message-ID: <20180806212835.GA80326@breton.holly.idiocy.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1533590838 8854 195.159.176.226 (6 Aug 2018 21:27:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2018 21:27:18 +0000 (UTC) User-Agent: Mutt/1.10.0 (2018-05-17) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 06 23:27:14 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fmn22-0002AA-6O for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2018 23:27:14 +0200 Original-Received: from localhost ([::1]:36373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmn46-0005Y9-Rf for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2018 17:29:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmn3R-0005Y2-OW for emacs-devel@gnu.org; Mon, 06 Aug 2018 17:28:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmn3Q-0000RU-TG for emacs-devel@gnu.org; Mon, 06 Aug 2018 17:28:41 -0400 Original-Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:52068) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fmn3Q-0000Q7-L6 for emacs-devel@gnu.org; Mon, 06 Aug 2018 17:28:40 -0400 Original-Received: by mail-wm0-x233.google.com with SMTP id y2-v6so15232351wma.1 for ; Mon, 06 Aug 2018 14:28:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Q8yc4P0+u5Onz+XWUdFxSxBd4cOcFCZuHLAlQaPXhPo=; b=iFWRF6ntShK0yp9AuLDaetz+6RwMM0+LsVb+xA650PNAJS6jXiyrd9EZ2SzdHOd/vv F7ygOpLCp1uQffX/pF61UubJJ+PLHYbX0wWfyrMzOLRdcbmJW8Qz4mivc2nA97qp31tP Cr5RRUkjVkzsl91bW88O7/X5hAnPDTHJrpSu07satyWSGiWU2pl9phaOlg4QaQj9LsG5 Ybr72mD3mMrz8rgjgkosw7epBz3iFAwjNngK1y95yLSWlQn9UsG8Dju6oVzXXzjJkLcW TgwaKy5Gqe391snKkyoVMd8CkANFvOd8xQ/DYqcW1z7BIfH0KhGkQz0YenpNv4TcBsYj B2Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Q8yc4P0+u5Onz+XWUdFxSxBd4cOcFCZuHLAlQaPXhPo=; b=POnhbVsRqudwwkIKoAyKB7yWuulJCdojjhpvNaNCubevG1FuiDTFhHfyFBmyaWIEQ2 zES1f57kmC45+oLDKYFJwSiD/erSzgsr3qJ6ZtyRn82BTBtPzQnijcTfWx9BpIS/MOtn tJHek82QUcAabkUHLRXPX/4uCKsPT9DHexL6Y5YIMj0Aci2cZwsFVixS8iun/dlJZkp1 ITF+8G3yjgOFZ2IGWhT9rbycCQulTeX9awSoi18HpE5A6j+bExvtF4yyEk1NSiSYVqVw HqCH9yvbei/2hOAgKESVKWDo3T8QYSrUROSGRIVU74PY8dO+APUGra0J0hsCnSY3xLDo OjYA== X-Gm-Message-State: AOUpUlFC/sbllX0c86S3AzQcDWI+A/CX7QGxlBtiiHLE+q418hhknSPs dmdPxV0xZyQoEsUCi6F54x8xbfsi X-Google-Smtp-Source: AAOMgpfwIl0u0YSSl2hqZAYD64PEsc8j82HjeWJBUCkYJBGHca7ZewR87FOTqIaBoQlG6BzUMnYgPg== X-Received: by 2002:a1c:1203:: with SMTP id 3-v6mr13577134wms.46.1533590918984; Mon, 06 Aug 2018 14:28:38 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-e935-7560-9c0b-73c7.holly.idiocy.org. [2001:8b0:3f8:8129:e935:7560:9c0b:73c7]) by smtp.gmail.com with ESMTPSA id a6-v6sm12710807wmf.22.2018.08.06.14.28.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Aug 2018 14:28:38 -0700 (PDT) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228244 Archived-At: On Mon, Aug 06, 2018 at 04:55:45PM +0200, Lars Ingebrigtsen wrote: > But apparently, Linux is moving away from the older input libraries > (synaptics for touchpad and libev for general events) and to libinput, > both on X and Wayland. From what I understand, it's deemed to be The > Future. > > (Please correct me if I misunderstand.) That is my understanding too. > And this is really low-level, so we'd have to write higher-level > function to translate this all to sensible events. This is what really put me off trying to use libinput2 directly. I thought the best option is to use GTK, which might need to be a native port to GTK, as Emacs currently ignores GTK’s event handling completely. That clearly doesn’t help with other X toolkits, but I believe it would provide us with a similar set of basic touch events on X, Wayland, macOS and (I think) Windows. Although writing a GTK port just for touch events seems a little excessive. -- Alan Third