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: Wed, 31 Aug 2022 12:31:39 -0700 Message-ID: <25359.46875.604087.626984@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> <25358.40536.609919.763436@orion.rgrjr.com> <87k06o91c5.fsf@gnus.org> <25359.45100.999353.785164@orion.rgrjr.com> 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="8699"; mail-complaints-to="usenet@ciao.gmane.io" To: Lars Ingebrigtsen , Eli Zaretskii , 57468@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 31 22:22:08 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 1oTUDv-00025A-Qg for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 22:22:07 +0200 Original-Received: from localhost ([::1]:39880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTUDu-0001f6-TV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Aug 2022 16:22:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTTRS-0000vl-QP for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 15:32:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTTRS-0005NZ-Ft for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 15:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTTRS-000671-3w for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2022 15:32: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: Wed, 31 Aug 2022 19:32: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.166197432023487 (code B ref 57468); Wed, 31 Aug 2022 19:32:02 +0000 Original-Received: (at 57468) by debbugs.gnu.org; 31 Aug 2022 19:32:00 +0000 Original-Received: from localhost ([127.0.0.1]:40502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTTRF-00066a-Lc for submit@debbugs.gnu.org; Wed, 31 Aug 2022 15:32:00 -0400 Original-Received: from mail-ot1-f43.google.com ([209.85.210.43]:38810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTTRD-00066O-Sz for 57468@debbugs.gnu.org; Wed, 31 Aug 2022 15:31:48 -0400 Original-Received: by mail-ot1-f43.google.com with SMTP id m21-20020a9d6ad5000000b00638df677850so10948627otq.5 for <57468@debbugs.gnu.org>; Wed, 31 Aug 2022 12:31:47 -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:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc:subject:date; bh=HwvX9skx9ERrcjsc6io9PCrczpIA+c6s/DlYKNIThC8=; b=3MGjKaMCWX/fCmGoIiHQVdcT76GhtUMFfqvIbZO/aYR09ObMEGVUPJ5yqIM9yaDn6S vVdMJtVDCOMZ9aBdPCLWJspdm8roMhwXK45Oa6+dOvnrZw/FUab1NcBCDe/8he7BrZ65 G7LH6zwy/IiK2JVyTOP+lvykSCxZQ+gOYUSD1I62SGqxQfZ/cDKUR9nlXJI2xx9EFnX/ 2adNLh2ADJsBDQnuyOI7Kf2tIW572iav7J42X598hLukWaI9di7ektwgA8Rq7ytNvxzT ykJ4PVeTAZwHwtHaYSpk6JZBy2xrbMOY9aQQVO4T8f+wYYGLnsU22+5HqcjF/H21Xhlx RJcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:subject:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc:subject:date; bh=HwvX9skx9ERrcjsc6io9PCrczpIA+c6s/DlYKNIThC8=; b=Waj292zO4t8UsvsAUxY+qr1SP1l4pIGEMMSDW77EZEGG/6/JkMymktC/Ct08kEvz7z soqWyB1ubNbOxpT8uzCs+nHKNyW5DKklnpPDqUbeKawG6OktVGv9eGUUoN5wNSNHjSgN gSjipXe0yNZLeYKc/UovxSZeUsLajPKX9enmeV6/8prOV22kZgMOjPZP4O9MNaB+dPVq XtBmfebQLP/FoajaDuBSFs1ZFDE+6QFtcztCXvzzZY6HC4vpSCnjBNytULEP8DL80uAV hPF5kW7MPIImjzsC2kKV9nWxATqCn/T9kPdux523ciPUxUGCcN4/cychkDCQu4h6RcOf fjcA== X-Gm-Message-State: ACgBeo2+fRuiSlLA/pZWaSNWcMzRj78gGfbjlhCXBV5oIDlz7hB4hOiL FWyatxvwWC9V57jqeLk38im8+UsIXkpaqo1v X-Google-Smtp-Source: AA6agR5z5UluZ62OLO5H0iIBJXgAhpYCObh/49DlIDSGGJeHz4YeSVso6cSdsQqvxCQzQ59vbD4IKg== X-Received: by 2002:a9d:70d6:0:b0:63b:46cd:96dd with SMTP id w22-20020a9d70d6000000b0063b46cd96ddmr1341329otj.141.1661974302229; Wed, 31 Aug 2022 12:31:42 -0700 (PDT) Original-Received: from orion.rgrjr.com ([2600:1700:7c2c:e000::38]) by smtp.gmail.com with ESMTPSA id f4-20020a056870c10400b0010490c6b552sm10142663oad.35.2022.08.31.12.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Aug 2022 12:31:41 -0700 (PDT) In-Reply-To: <25359.45100.999353.785164@orion.rgrjr.com> 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:241223 Archived-At: From: Bob Rogers Date: Wed, 31 Aug 2022 12:02:04 -0700 . . . I've also tried a slightly newer version of master ... on the previous openSUSE release, and the cursor behaves normally WRT focus-in/out . . . Minutes after I sent this email, I saw the bug rear its head in openSUSE Leap 15.3. To test, I had three instances, two with my initializations, and one "emacs -Q". Pretty much the only thing I did after sending the email was to quit the "emacs -Q" and fire up another instance as root (su and then "emacs &"), but curiously only one of the two instances (the second one launched) was affected. So I ran the following augmented code in both the new root and the affected instance to see what was going on: (defvar rgr-event-count 0) (defun rgr-focus-in () (interactive) (message "focus in %d" (cl-incf rgr-event-count))) (define-key special-event-map [ focus-in ] 'rgr-focus-in) (defun rgr-focus-out () (interactive) (message "focus out %d" (cl-incf rgr-event-count))) (define-key special-event-map [ focus-out ] 'rgr-focus-out) As expected, the affected instance saw no in/out events, but the root instance saw a single focus-out event when the other window caught the focus, then a quick in/out/in sequence when the focus came back. (I had also seen this odd triplet when debugging under openSUSE Leap 15.4, but at a higher level in the cursor blinking code, so I didn't mention it in the initial bug report, thinking it might be a separate bug.) -- Bob