From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#51703: 29.0.50; [PATCH] Fix default target of motion events Date: Tue, 09 Nov 2021 14:50:23 +0800 Message-ID: <87czn9akls.fsf@yahoo.com> References: <87czn9akls.fsf.ref@yahoo.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5724"; mail-complaints-to="usenet@ciao.gmane.io" To: 51703@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 09 08:23:00 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mkLTA-0001IU-9P for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 08:23:00 +0100 Original-Received: from localhost ([::1]:59606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkLT7-0006MQ-5U for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 02:22:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkKyE-0006Pv-I1 for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 01:51:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49013) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkKyE-00005y-8r for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 01:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkKyE-0003BG-2W for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 01:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Nov 2021 06:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51703 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163644064112193 (code B ref -1); Tue, 09 Nov 2021 06:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2021 06:50:41 +0000 Original-Received: from localhost ([127.0.0.1]:60559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkKxt-0003Ab-BT for submit@debbugs.gnu.org; Tue, 09 Nov 2021 01:50:41 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:43040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkKxr-0003AT-Fj for submit@debbugs.gnu.org; Tue, 09 Nov 2021 01:50:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkKxq-0005tY-Px for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 01:50:39 -0500 Original-Received: from sonic311-25.consmr.mail.ne1.yahoo.com ([66.163.188.206]:45439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkKxp-0008TG-9N for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 01:50:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1636440635; bh=0eyi4ZigVXpmj+KM6MAvMdFTtZS1uTAKEtJD6G3crw4=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=bK0eG472Y1EN/B7E9EykNN9vmwfqTWXU1Um2dVAxTeDMfRx0yTW7AbZBUcSFBVkMpSVsS1beT5bN2o5e+SUIrClcFrSQbojHo42hv4VA4RWVBEOuPuUWiFmY3IJsK6Gf0R9x0KcHJz94kOPdwvL+UwnRdzn+OzjGAs+KkkaxAj7A8Jx9I1GJhQqQ6/Km9xPfoYCLn9oYLZ66FEjX0FEPGIklwuOlGoyHve4vWW8UtBAFiB80aaWg5dnpkm4F9g5EE6WejDpJhB8McutMkeFl5JQIwDGI2Bwf8yGAY0y0TgXaWQmarOmLqG5URq18oWSKPqGJ//PvfzRzWxYER0jSqA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1636440635; bh=d+CaiI02Cjl6w7iuR/pqd2/hBLvGazCChUGhzzTuYXh=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=mAMoOldXZeY+ntj2kK0874Dwm8RPuhpoXpR41RXezEa7CdP1QiICXKImcG6oWg3OckRe+D8nq/ZCOH6k9aFWLd4VvdAdBhVHMRBWOwo593CAy4Di4gCYG3o2YZ3+poZ2AafuEh3OhTvxWTI/CSnXh5cgYR3UuQS3GtWPhwT9Ve8dp8j/Auj2naJCRzdegQM4T5JQ7losbQcBSNu4cAeuT9GMvksqKY49EUoMpPTxYDN/rOG+iBKMJQHrl5Y0L2dpg91QErguWAQ2CYYOEBGeuJGJNonMr73JI41/q1yETKeDAiVc59gzY4ilebazJlIhgspSpaByOx9QAayBwQoglQ== X-YMail-OSG: Ni9QQJUVM1kbxw4JQv00dz9NIzNclUShAkw01OwbkSiGUPYKhVZUHMnlFuOVjdh P1zx1vMP4j0cvs8u5sqdG6Sdn.6BUo14aFcBVFPSuMYU.5Ewrp5PZj05qCfegzKUAJuArEGpiQxU 4OVi.1nhw2WZ9rjJi6BtND_ow924imjkJSLsa24dvHHxsf943QMb4LTILb6Wb6.wesOHVNH4ntPn 58Su3j0Fgft6CjJBrZe0qUXFiAerPYtPJJj8YEIDCZjwKv2T9u8J5KEyL5apxWOMT7lKxPg3xKu9 3p8h8FnBVSPI5HxkE7_EwhI46UF2DjnCrzuAJFVNsICV7Lh9wHzOqPw5ACvHk1i90aRmQnLa8zxd GVTT7NbcX9jsD5hhNLtilV3A5QqRJcQ5XzvYuqBSF_nTiz.zSF19ITNAP8O8IDifAyDsvHMM.ZHz aUSsDBQ9PSyKFrixdFU15sjGauJ0jQXncCQQOGrivuiAtvROvwW69.cJMzZ5xg3DktpRCrP.A3mZ qJvy_Eixy0PK.sWhFY3EZNrZ2yRQNPADhHpMHNHcSeTlQWXezSIEoEBsQYgzDciHlk7e6Vx0g.9M tZ5jkZi45H2YX4DycYKfhrRkZk3Z3C2IW5dStPfvDiGmTf8hv0Bg7k2C621fnIrQIG2xyA67Ed3s oS_9CzPDjxLyt0FXHewAL104uEHD3T3FFWDnXy5jAu8CQEutoqxT0WgHIJ09_gGLbPsUWvxTIk8R K2qQNwpDFmI7QBwi15rp49Q8O33xs5x0HoYEgL8dA3u3xriuDEG2Q3VxCmqK5G9Kes4UchsskWmQ 3Sarkfa8KXdzK7g8xOvNQdk8C_Pmo1lp9ADIg9R3Z. X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Tue, 9 Nov 2021 06:50:35 +0000 Original-Received: by kubenode504.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 8a8572481b5c2b83bb0c504669d94e8d; Tue, 09 Nov 2021 06:50:28 +0000 (UTC) X-Mailer: WebService/1.1.19266 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.206; envelope-from=luangruo@yahoo.com; helo=sonic311-25.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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219416 Archived-At: --=-=-= Content-Type: text/plain Thanks. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Fix-default-target-of-motion-events.patch >From 45f7b15398ee817453e842a8c0fa9ed32c64d6ce Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 9 Nov 2021 14:49:14 +0800 Subject: [PATCH] Fix default target of motion events * src/xwidget.c (xwidget_motion_or_crossing): Default to widget_osr instead of its window. --- src/xwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xwidget.c b/src/xwidget.c index 90178f441d..d3a8d5eb82 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -763,7 +763,7 @@ xwidget_motion_or_crossing (struct xwidget_view *view, const XEvent *event) &x, &y); if (!target) - target = model->widgetwindow_osr; + target = model->widget_osr; xg_event->any.window = gtk_widget_get_window (target); g_object_ref (xg_event->any.window); /* The window will be unrefed -- 2.31.1 --=-=-=--