From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: xwidget events Date: Sat, 30 Oct 2021 21:11:50 +0800 Message-ID: <877ddulkrt.fsf@yahoo.com> References: <877ddulkrt.fsf.ref@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6034"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 30 15:13:51 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgoBC-0001N0-Ur for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Oct 2021 15:13:50 +0200 Original-Received: from localhost ([::1]:59056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgoBA-0005bV-VN for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Oct 2021 09:13:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgo9W-0004AC-0p for emacs-devel@gnu.org; Sat, 30 Oct 2021 09:12:06 -0400 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]:43641) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgo9S-000892-Oi for emacs-devel@gnu.org; Sat, 30 Oct 2021 09:12:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635599520; bh=Xoy0vXY6E4LgJ+O6pE+6hVs6FzsDkqg+nCYc927ViqM=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=KMhEhZQRrsNxWxAD2NdIueZNLBRDACxEN0lhLZPjBZYei7YRetHd1GfuXpVLTYglR9UgONsq0lsxe3+ar9KmfFOJG2QQPsIVSwe2sDnUWS8tScHkrNgoGDaIlu6lx5msaNX023efPafWYOEino02adQ++O1ftmHwE7BfIHDvAfn3iUKGzKyfLiReujUQ0zJp37NiKWBp3uxj4z9we++oHGcAOdXnsZpwvIB7SLFOYTs4VtXrLPrsZpfTjWN/5J+6MtMcycSElAqfbJ9v+NE/7fEzGLVcsxKh7wuLcIjZ+G0Fgsua6xkKfobnt/Ap7c8Mc94GWu53PzcUzeuT3nbgRw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635599520; bh=p5/mGxsbEctSwm2u9xojUzqjm7BzTnIYr2NUiz536Bm=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=p5ZBdgUUtyL4PrjQeYdD/qqTUjZQAmPmpe+DCFTx1tzZV8Xsfoow26Cru8mZYJ484PxBXLy63+zCKF5ykSp2W3qkYjt/yCcfDTCTBlIEwwdgKTZhrKwLZDLdjdzLIrpI7/FGDewQciEtjk3TyAYsEPTRkBTYN2uSuaDtG/YkhJhkp2gJqhPZqNKy/uvr9MatCZBLeUkmCF1oKyicKHsyuthv3zr+WjJxtbwuAmrkbRKx+eAIL3ZH32bpFbk8WXz87wd2L6lGdlY2f9WxWv2NwBo7RTEReKmKoIpM9dugV6MRfnEaNEkyN/mBfK2piAritMW5ehsDijX/NSsUMOHTTg== X-YMail-OSG: w682O8UVM1no_l2GoREh7OTUXK5YWM0rm2V.7l3WTpIR0u2gK_bnbyuRawmWBC9 WMe29fMtxA.4aXhyBcJ9XrBmxQaG7BIeqckv4qMxTPORJdQw41_y_UOa2zVI7QEL4eH1dX4JHTNU BzhZUwG8gtFqNtTmKxwDR4XqarmMb78D2eC3z4rarq06.HvZrZgBksH2FegPEC.wdaQ8N68VaxRt YGWk7p5t1qaqKDTQWBUcYJpPHZyzjq4UvFlUEB2YQRH_SoZznvHu7ZVR2XR0MVnhlHZuqqky1jjm u8jK.7.6R0RSwPY_6jJ4HmoAzM1KddIBrUO.NxBKI3XgoFDFIKjgdO3s1Nf7iN7kMHq2ViEIZk.Y IzN0QvoQtr0xDk7GRP44OlEvg1rnxggCioEqiHEIwgDXOAsliFHztNehPZNXNiYvVWmRLxl7GMWI Yc6r4t5BLWw9oiNNPu68dYlrt2j9sIIIZjnr.2KN_xR91td2gkisnHROOoAdSZ0GwL3HrLDCaqmm 3PrRKKmu4viuqXEzch6xfImwNPaGDqGWZKR4VMSCAkD2aPoXuZroHGe_TQ5nxTHsbhd9b5Ko1ACY AZWdiscQRNTjLxoUR69Caje0J_Gc5oaMpu3pnoPYjotRgo2VlviU0ZLTX.HxtYLOB9UA8erfxj56 srRt_ao0iW.IyKOxSuG5qOiULc2c6iOU62MlJwINWp7MyCSVVS32GOprXXaIr8yw4NEEoJOrUn3. geV8oKaw1He.udiSRuKxT5kW4O916.xk2wNochwPgYtsmcnJEKY61GMTlY1N1jJfF74XVdBN7val xLO_3GL6tJJGnBuaytE2LevEO0qUtRuUXR9IwbAhHt X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sat, 30 Oct 2021 13:12:00 +0000 Original-Received: by kubenode512.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d4035960cd536bd7d79197f64372906f; Sat, 30 Oct 2021 13:11:55 +0000 (UTC) X-Mailer: WebService/1.1.19198 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.204; envelope-from=luangruo@yahoo.com; helo=sonic310-23.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:278281 Archived-At: I've been experimenting with making xwidget-webkit on X11 usable as an actual web browser. So far I've figured out the annoying redraw issues and the broken scroll optimization, but I'm still puzzling over event handling. I was able to borrow a Mac from a friend today for an hour or so, and I used it to try the NS xwidget implementation. It seems to handle mouse, button and click events entirely separately from the rest of Emacs, which I don't think is a very good idea either. But that also means the browser is actually useful, which is a good thing. In the existing X11 xwidget implementation, only some events, such as motion events are passed through (without being exposed to Lisp code first), while with the improvements to xwidget redisplay in bug#51473, no events are passed through to the xwidget at all. So I think a better idea would be the ability to pass through individual input events via Lisp code (for instance with a function named `xwidget-do-event', which would accept a lispy event as input and then send an equivalent event to the xwidget). Lisp code could then take input events in the xwidget-webkit, and then send them to the xwidget. But that's my take as a relative outsider to Emacs input, so someone probably has a better idea. Any thoughts? Thanks.