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: Re: Possible XInput2 cursor bug ? Date: Wed, 08 Dec 2021 10:39:59 +0800 Message-ID: <87a6hbg6ps.fsf@yahoo.com> References: <87v90wmh6m.fsf.ref@yahoo.com> <87v90wmh6m.fsf@yahoo.com> <87a6i7le2u.fsf@yahoo.com> <83wnlau371.fsf@gnu.org> <83h7cetvso.fsf@gnu.org> <87y25q2rj8.fsf@yahoo.com> <87sfvy2knz.fsf@yahoo.com> <87fsry2fax.fsf@yahoo.com> <87ilvzga2h.fsf@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="29180"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Madhu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 08 03:41:02 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 1mumtC-0007NB-7r for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Dec 2021 03:41:02 +0100 Original-Received: from localhost ([::1]:58782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mumtA-0007p0-J5 for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 21:41:00 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mumsM-00077z-Ja for emacs-devel@gnu.org; Tue, 07 Dec 2021 21:40:10 -0500 Original-Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:35736) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mumsK-0008Vf-BU for emacs-devel@gnu.org; Tue, 07 Dec 2021 21:40:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638931207; bh=i48r/tMtS9lX61ywAdpu//owOfuDJQzw1Am+bAndF+A=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=eH6a5WvX2INqLJ9dzAY87QPIprdJBd1rkZgFbzAYDsjXaHzy95iomwUWKyxPybhrOHF1NlRxWUXZEOw1dy+l7ThMfYcqLmpSw0gg4aV/6uKri6uf7RoUEWYzZz/ukdxxnjoLwwNh3+6Qcve/cSVJJWVidpEwrtNcbrtJ/KTEwDRfbJzqYi6pX1njfjVecXaabSKHitM9UA2R3n1KXkWSHSEbv3jgWZnDS6xO2iIomT8KD+/IPSeMqKhOaJ5lmY4qlam5REW3iy+8+f/8enhHWpoSOVTbGjks7sItE844F6TcdG2Jete1xiHWK6KNzlL8scl1LqVEAQsQoIoPMOqbEQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638931207; bh=4eEOUsXHU8Tw97UkYlWBWlhiEOWZG7nP5G0qyszS+FV=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=TKWjgO0dzd25Z79jicKPxk/JJhHKWhwrd/2VaaHN1xk6+1SuvSl0UwhpJ5ivkd4akUb1YGJqsAgqg7NjlBx7238W6l3BsX81GKV/BDsPH4FbbeMtp/fhCdhwR4fO5RWm41JTvLIc1NmD34rLmvyyZDyATdyri1q3UNeBqW/Q6+LwdwbnMzqSEVXSWqqrZpSmnVvUqunV7/1K5aiIdyvVxkfKSfXdV71lcc7kADWfHJRyjLm+tWPlBusy1UKV0zONWALObjER/DPubTLsPxWIgakhlGMQnCSQ9i2Ivr5AzWlXxO2qipQUOpTzFJp31WAdWZGFPJHt0Sfc69Umqu4z1w== X-YMail-OSG: pt5QOnsVM1ksSddmnBve.jT5TScK.1xNXhlNBhGUiKhrZgOReP7886y5Zj4H_ho kYNpzCFDA1tPsLO3CEVWFLZlKx0wIZCjlN5EI47PEFAU2mMflX.EZVci1EWFVGNciW_fx1rMN8NY 2maYRS3qJvnXH62M1smdbmMCJA8kAZiF8H.hu.HTmTllc2Q1cfB_5DIJ7zYFAP70N4YZTt91UiT0 GqlGj96uxVbWDS1E5KZv21Eesn3m2TCEqyH5oSGDc8dl9PDdZRqG_P4.klxcDs7JAbBU8fz00J37 NAEqEd4Opyb_MeoQykqrzTYTtUXuP3TdktQofZUShhzN4LPCAn_7ocfBQFsU5GsxBGX6iGUr8LY3 wdlGDRQJf9_sY3llkfTl1X6ghBEvnGKqydm9b6XRVTP3FM0z_thDBDNtR6NQSwogFt17mM.6B3NA oZWxeETEwi70P3eIYQfJn40Hx2PnuP.V57CSOXRGGAe6zIcLNA3SOqhL7uFmMf82dEJq2RxPQG98 KO82H6tZCJLAHnVzqMLghg5Z3YGokFQoaP_cnud5oPobR6YmuLyB3fdLDjQvfZSNHyywLhmx4OXL pG88fQSBDleDhRZhL8Z65_dAw78sdFwHQ9CEAgHS9NGSZhyM4NEhPX1CQKVSqZXg6hUYB1jodNbs mLH1WVYRIOEyTwBwDS2G_eZ8DmArfSdZAC4Hue0XxTJ17F_J5TDlANxUkgXUdaZPN_DOi0lxcTVJ 1mfWfx_CkDw0ZlmxRUWzu9HpmCgnk7Ppl8lm9vBHHszvThYqv0FvJVB4CWhATn7pf7NMYkSwOiml hK8uEdAN0fOB5_xbGL0uwfIEUMdyd_tXf.SMOY3bdy X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Wed, 8 Dec 2021 02:40:07 +0000 Original-Received: by kubenode512.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 5684a2bb26995d74c582933a480f406d; Wed, 08 Dec 2021 02:40:03 +0000 (UTC) In-Reply-To: (Madhu's message of "Wed, 08 Dec 2021 08:03:11 +0530") X-Mailer: WebService/1.1.19415 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.206; envelope-from=luangruo@yahoo.com; helo=sonic310-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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:281304 Archived-At: Madhu writes: > (dwm doesn't have a concept of iconification but) this is not getting > hit. What is happening (I believe) is that the mouse pointer is getting > warped to the top right corner -- the window doesn't have any > decorations -- and emacs probably thinks it has lost focus, but the wm > keeps the focus on the window anyway. Hmm... Could you put a breakpoint here: else if (type == FocusOut) { -> frame->output_data.x->focus_state &= ~state; if (dpyinfo->x_focus_event_frame == frame) { dpyinfo->x_focus_event_frame = 0; x_new_focus_frame (dpyinfo, 0); bufp->kind = FOCUS_OUT_EVENT; XSETFRAME (bufp->frame_or_window, frame); } #ifdef HAVE_X_I18N if (FRAME_XIC (frame)) XUnsetICFocus (FRAME_XIC (frame)); #endif if (frame->pointer_invisible) XTtoggle_invisible_pointer (frame, false); } And then show the output of the following command in gdb once it is hit: (gdb) p dpyinfo->x_focus_event_frame Thanks. Also, what is the value of `focus-follows-mouse', and how is your window manager configured in that regard?