From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bob Rogers Newsgroups: gmane.emacs.bugs Subject: bug#57468: 29.0.50; Text cursor continues to blink when frame loses focus Date: Tue, 30 Aug 2022 16:33:44 -0700 Message-ID: <25358.40536.609919.763436@orion.rgrjr.com> References: <25355.64624.561352.871099@orion.rgrjr.com> <87h71vnkic.fsf@gnus.org> <25356.65468.697925.958369@orion.rgrjr.com> <87h71uaux7.fsf@gnus.org> <83h71uuegm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2556"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57468@debbugs.gnu.org To: Eli Zaretskii , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 31 01:34:47 2022 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 1oTAkp-0000OK-7k for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 01:34:47 +0200 Original-Received: from localhost ([::1]:39334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTAkn-0005Ik-1Y for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 30 Aug 2022 19:34:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTAk6-0004ip-VJ for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2022 19:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTAk6-0001Rm-Ms for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2022 19:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTAk6-0003ld-GW for bug-gnu-emacs@gnu.org; Tue, 30 Aug 2022 19:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bob Rogers Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Aug 2022 23:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57468 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57468-submit@debbugs.gnu.org id=B57468.166190243614470 (code B ref 57468); Tue, 30 Aug 2022 23:34:02 +0000 Original-Received: (at 57468) by debbugs.gnu.org; 30 Aug 2022 23:33:56 +0000 Original-Received: from localhost ([127.0.0.1]:37701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTAjz-0003lJ-PH for submit@debbugs.gnu.org; Tue, 30 Aug 2022 19:33:56 -0400 Original-Received: from mail-qv1-f46.google.com ([209.85.219.46]:44887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTAjw-0003l4-Kb for 57468@debbugs.gnu.org; Tue, 30 Aug 2022 19:33:53 -0400 Original-Received: by mail-qv1-f46.google.com with SMTP id f9so6250774qvw.11 for <57468@debbugs.gnu.org>; Tue, 30 Aug 2022 16:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rgrjr-com.20210112.gappssmtp.com; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc; bh=ujvMtFt0qpvIhqZqthSD5KglJlClxJ2ZTziLPh2RrkE=; b=LiWa4vY52dicH2QIfOSc4y2pmW1UH/Zp/4di/lIq3H4bZ/T6Fr+gswGVBLTTrDC0QO kzU4PVYO9F9u+PT/xYyGosNuIphtmp2KYQH+n+mHcoTJvndlrLPy3aGiTbkO/Z9j5S5G w0A0BR96YJu9e2gHc3cdQ+rKsn43GfIePpiUCmw4tGh3EK62RELXPQoyngk25sSSKD+y kTBuQCe2oCOELCdxCjvqDHIhy8+q0CuTpyOmt4z4U2+5v1fT5MqJ1VM54F+ScWgqaBuF TNzmu4sRD+HUIeAZziFyY7xDoUMlGZsMpOB9VsSVaIExBZf38lVO+FaIrs3OxSY8I3Pa cnKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc; bh=ujvMtFt0qpvIhqZqthSD5KglJlClxJ2ZTziLPh2RrkE=; b=menvaTFrf96/d99wyJ4Hl4pUIKZvgfoSjdm1Oy9538kVAKJW4UzNAwohJpdfhDppem f3NMJ4EQ6WDFVKntGVAIv2mRhF74Ke6/vQjh6EqjmypwH5FSSfuae+4Shkan3HAsgHB9 19ug18cn0bxbpL2OVd4y7l+0Yux5lxGwdQ6/dw7GYosO6xYGjHhdK5iByjnuJS5cMpf8 OmplS94Qqy3I2RZ3VPIODuWf2UMuW3kB3y0dS9L5v0OWag1IhCcFCeCs6aNl7qUKKbSZ L0RUFVlHtCUvY0rFEraRhw27G3GLCdV/etXv/xvff3kBY1gxiuuwgxuwLTFAfWffyBrc zeTg== X-Gm-Message-State: ACgBeo3d4t19qYWzejDcKBUO1u+qW9lrwzZO49zONhOecuvCZS5zCJsM Ovxql2EZSKQ+0HTTy97MEpmjiQ== X-Google-Smtp-Source: AA6agR69PL/P3sB5mj/KX9V6rSeqThsGTV8O73YNqoj9NTlOtj2jCm2Lg0V2NGfEFiMwsHBNDRcV4w== X-Received: by 2002:a05:6214:2528:b0:499:1c41:8751 with SMTP id gg8-20020a056214252800b004991c418751mr807068qvb.95.1661902427016; Tue, 30 Aug 2022 16:33:47 -0700 (PDT) Original-Received: from orion.rgrjr.com ([2600:1700:7c2c:e000::48]) by smtp.gmail.com with ESMTPSA id ez5-20020a05622a4c8500b00342fb07944fsm7664377qtb.82.2022.08.30.16.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 16:33:46 -0700 (PDT) In-Reply-To: <83h71uuegm.fsf@gnu.org> X-Mailer: VM 7.19 under Emacs 29.0.50 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:241155 Archived-At: From: Eli Zaretskii Date: Tue, 30 Aug 2022 15:02:17 +0300 > Cc: 57468@debbugs.gnu.org > From: Lars Ingebrigtsen > Date: Tue, 30 Aug 2022 12:27:00 +0200 > > Could it be the window manager that's not sending Emacs the de-focus > event (or whatever it's called)? That should be easy to verify by binding a command to the event that will display the event. The focus-in "pseudo-key" is defined in the special-event-map. When I went back to my console, I found to my consternation that two local emacs instances plus a new "src/emacs -Q" all behaved correctly, despite not having touched anything since my last email that might conceivably have an effect. Persevering, I used the following code to track events: (defun rgr-focus-in () (interactive) (message "focus in")) (define-key special-event-map [ focus-in ] 'rgr-focus-in) (defun rgr-focus-out () (interactive) (message "focus out")) (define-key special-event-map [ focus-out ] 'rgr-focus-out) And got the expected correct behavior. Then I brought up a pre-existing emacs instance running as root (which I had forgotten about) and found that its blinking cursor stays on persistently, and the focus in/out code above shows that it's getting neither event. (I don't remember if I tested this instance when reporting the bug two days ago, but I suspect I did and that it was normal.) -- Bob