From unknown Sat Aug 09 15:56:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64625 <64625@debbugs.gnu.org> To: bug#64625 <64625@debbugs.gnu.org> Subject: Status: 30.0.50; deleting a focused child frame causes Emacs to ignore all input Reply-To: bug#64625 <64625@debbugs.gnu.org> Date: Sat, 09 Aug 2025 22:56:16 +0000 retitle 64625 30.0.50; deleting a focused child frame causes Emacs to ignor= e all input reassign 64625 emacs submitter 64625 Andrey Listopadov severity 64625 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 14 13:20:49 2023 Received: (at submit) by debbugs.gnu.org; 14 Jul 2023 17:20:49 +0000 Received: from localhost ([127.0.0.1]:43379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKMTI-0007t6-P9 for submit@debbugs.gnu.org; Fri, 14 Jul 2023 13:20:49 -0400 Received: from lists.gnu.org ([2001:470:142::17]:38562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKMTH-0007su-AK for submit@debbugs.gnu.org; Fri, 14 Jul 2023 13:20:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKMTC-0005Pu-1C for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2023 13:20:42 -0400 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qKMTA-0007A9-9l for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2023 13:20:41 -0400 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b741cf99f8so33728451fa.0 for ; Fri, 14 Jul 2023 10:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689355238; x=1691947238; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=zw7FSliPF+a3JwdnslCXx9UEjDMVtjEaeVWkWaXhcSs=; b=ndhAyKJaT8GVm+HpdDjBcYK4oga6Rcin11ZWc3dlGv9JbzmIqRCtysgz0tdc/ldz0Z pgtiaiS9UkFbzXeGqXnoxgs4hHvywrFjoS41IpywOafrtJVoOoNJky7R4YcpFE0f/1q5 GwtokasAanOzd/H6gMmQgQi/0mp5JBFBAFNP6wq2QNA9ZIKaEqJIwFe7hk3FgqPU5lyv cETqQYQZKLKOafhRm0BMuMsVP/C9e9O4MspMoZpZvN4pWxW99bc8lVtkuJcNylwRDWw6 yvtl+CSdaWGbnTo77ZazrWqqJ6+/dNNZHjSkkzDBHDvbthm8cyIELrB8Rf9ONR0jqOgg PoqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689355238; x=1691947238; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zw7FSliPF+a3JwdnslCXx9UEjDMVtjEaeVWkWaXhcSs=; b=REN+XWwCkfKLIpHf8hSVJ+vr8Tqhg00+hzMfdq7zdwBPbNeHiY/bkex3edGyI9VUnD G2hUizH0NgsA6CzGhA8kZ5408tggKcvoi6JkzAc1k9lb42D9wxTY0z1+xaYbM7GZmBeC WbP8Lps8MmGFy2CMBJ54Cg+Gl0ChBmPkd6KCusQnR5LfYWqtnR4iYTjqQzsIUikaES8Y BF1iA8Lu643sthpnmWVGP6q9ztjDFLtsarXXi92N2i4jFOEgPhrunamlIBx3TPifKAky 6FmfI/pzFy/7XO+/7V6pg62gNhRwPFsYn0QZaesNuCF587e8ah1csyImZFbZtDLxuGp+ BbUg== X-Gm-Message-State: ABy/qLays5LoNAVeQyG8l7dN72TYKJ11PwBUErt2ZSN0L4NL9IBwVx17 R6WSdc6vK5r970ep15jEu0dG+wVuxWU= X-Google-Smtp-Source: APBJJlGR/qUuliQAC/5EZZXD+OzpTqdrgniQR4KoFiE8fVzuO49Hn0+I+5QPJwNimaWlJHwUfuQOTQ== X-Received: by 2002:a2e:9f43:0:b0:2b6:e128:e7a3 with SMTP id v3-20020a2e9f43000000b002b6e128e7a3mr4128873ljk.33.1689355237404; Fri, 14 Jul 2023 10:20:37 -0700 (PDT) Received: from toolbox.smtp.gmail.com (broadband-90-154-70-35.ip.moscow.rt.ru. [90.154.70.35]) by smtp.gmail.com with ESMTPSA id sa17-20020a170906edb100b0098ec690e6d7sm5682492ejb.73.2023.07.14.10.20.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:20:37 -0700 (PDT) User-agent: mu4e 1.8.11; emacs 30.0.50 From: Andrey Listopadov To: bug-gnu-emacs@gnu.org Subject: 30.0.50; deleting a focused child frame causes Emacs to ignore all input Date: Fri, 14 Jul 2023 20:12:18 +0300 Message-ID: <87ilamtnoe.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::229; envelope-from=andreyorst@gmail.com; helo=mail-lj1-x229.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello. I've tried making a mode that creates an alternative window manager within emacs that uses child frames on an infinite pannable desktop instead of window splits. When I've implemented the button that closes the window, I've noticed, that when I'm closing the last input, Emacs stops recognizing any keyboard events, and the point in the root window disappears. This can be reproduced with the following steps: 1. Call (make-frame `((parent-frame . ,(selected-frame)))) 2. Focus the newly created child-frame (with a mouse or elsehow) 3. Call C-x 5 0 to kill the frame. 4. Try typing or calling M-x in the original Emacs window. Weirdly enough, the only thing that Emacs responds to and restores the focus are the arrow keys. You can also go to File > New Frame menu and it will fix the issue for the new frame, but the old one is still broken. Am I supposed to delete focused child-frames in a different way or is it a bug? I've tried using `handle-delete-frame' by passing it the list that resembles the event the function expects, but no luck. I've also tried calling `select-frame' and `select-window' to change focus to the root window, but it doesn't help either. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-07-07 built on toolbox Repository revision: 37101780243d083e8773c255242aa26614f22a14 Repository branch: master System Description: Fedora Linux 38 (Container Image) Configured using: 'configure --without-compress-install --with-native-compilation=aot --with-pgtk --with-mailutils --with-xwidgets --prefix=/var/home/alist/.local' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER XIM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 79975 14023) (symbols 48 7183 0) (strings 32 19825 1255) (string-bytes 1 644867) (vectors 16 16854) (vector-slots 8 339865 14526) (floats 8 31 56) (intervals 56 237 0) (buffers 984 11)) From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 14 20:02:52 2023 Received: (at 64625) by debbugs.gnu.org; 15 Jul 2023 00:02:52 +0000 Received: from localhost ([127.0.0.1]:43658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKSkO-0002Ka-EJ for submit@debbugs.gnu.org; Fri, 14 Jul 2023 20:02:52 -0400 Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:36174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKSkM-0002KF-KF for 64625@debbugs.gnu.org; Fri, 14 Jul 2023 20:02:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1689379363; bh=Q8AM4H4jCnVxUh47sMnVqtmpT474uypAWD57uKDB+5Y=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=m1EePWM1SPJrx8tgAlalFcb8M8ITAFZcnZyk/9PY6nYFXTWr668Ty83qqyz2TyA6jVd1tdKYJdaC1j0sT7nvyJJBHRkc+3/x9jfmfHZELp9DLzbSLpL43thth7lFUwV3De8U8F9mUTYplXH0LcOKcgFqU6xZ4mSGy/SoiUb8kxoreauJvPwaM3T2KDp9cMsR92gM/1EvOjwoK1dNTgzqtKQoNwKfvDCoDo6kU7kyWfNXQTMhfWOFgsu6zBL/X8d/4boKZGXOPuea5rtUxnOPUXnQKDZeBhW1Oifl6o0LYln7xkLLDsgK7EuQBzJJ1LYcv8N5rzPfB2xl9mbLnNChow== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1689379363; bh=ORIZIAJQYNvp+cvB2pTNX+YlMdqnY207lkM10PlLTXp=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Q16WM12pCcfYZcsOvXWJSXOuuv7OBwObxFGbiaq/bA2gAZxeGlj73T1tzyMJLcd5K/wid5Z4xlqk4Bkxzj/xywWGY3eLXWWTAFl9nISNe2tFzXfe+Hpdrj4m87saxWlknjVzR3+rk3IgpMjihTk4B23jdEZHBgX72Gvw4J8STdWwD58QtSO9sA66w4jfDZiRNsJAp3cSAts/qo9hXIVPeGsctHheyc0dPCtQz6ug5E/kEYXLyFVd8CkrT5evQBzpmVEcwJdJIlrsMT6IvSuSH7uO4wq3LreFRRF3csOjEMgar2DeFIhbdcSIC0RbGg3WLa5Mi3Wmlyz0KugKFU2w0A== X-YMail-OSG: DhKFC44VM1nx6qpvjJtgLMqOWNyp2K.ZkdtdsbyT2ZkL7SF8aXD5iV.kIaikQ9E RgBBfHIMmu0agpvm1qgnEv83HJI5yfUn3w.s4F.NWo1src0cMIC8Yoq5XkiJCeG1yuK06nYOP89z k9r5Dit_JCq8BQZfu39K8K6UbXj0DiSmGSuSLkXEE7dlG03Zj.HyyMWJv2RIRHuAAWdoKu6e1Nsx FVMZ5oA2m9i4_sf4wEiSwnzi7Oa4NODSucl42I.wa11VhLwaAXwbh8TBTqT6HkXPUgnn2zeqYyG_ XE6AOUBb8lbVRqbEPdZBCDG3fyxunczJEv_JaYs.ZZYql7EvknLBCClVwZkbY7FAQSscMVGtNM9T ujqiXGxAdbw3Okv1T8IgbOTdJsrDhMD3X2gewDVKMBG9kGUDJLIhUfTlPY3aPw4vDWTtOwQJ4Pu1 b.R6UwzjYYluAHuBoHRjOGuRkZqReoFkwAwR7ObHPjEYXCDeXWC0CKy4mPbcf9F26Zzjo0nB52rE _qgeVKE2Li..adN3g1A8EMnyZW3hrKfybpmyJg8Rb0ftv183vW1_3nop1k_lCoukJGfqhbcn9le3 uHB6y35XMLOsVR.5lLQaJbvjMQvD.FlOV0ArxuTu0SFHKMRxppSdRPeFHPwm3lweczOQpajB8Gjp XfWrado2_lAZRmwzWIjmMOobIrpthhMaTwBhY8f9iLFbqvdSAmO3lDN.ySpifR73dNOxT0A2Fckm crg1TnBP.BaCgZ2oBCuvEOBK3ytoXoRDuPW072lqiSzWV7UN1WcMHbOQ_S_DELdw1DWYAxQ4Zkd7 hPOKWzsAaHljcb.SP9wPNhvvWJ2ZZYHN5KSZhP0K6a6pF7OtmYAnLaCqpvaavbgzvXfzuudznQ.c aJirZsdH8VtxwHI20YDwd0suNdRqtTPn6k4Rzl.pMol5NWVXpjaCPtEqWg72fC43jEEqsvxvitmq YSNLaC5MpiH0La1PE.hut97UhR.M7Yh5Jy0gD5cr2P4zqRP5kIJR45uws5lhpVhRoAuXfAuOJUgd Ug7lIy.Xmp9CCQV1yoetr9Fe9i5xh7tVw4ef__w8Xj2qLOTTWRV.rwssVTrnmPmcVsuthooYUYIF n3hPtMJQghAgpyEWa9CYQbuNzyPd9Ma4lTDuQ7gYZOfTbkHzonhqTtWjZIKPa8smPCx1d8tEAhUf h_65y86HcBpVMFUOH6U2fRv1yEb5UZ1L.o6mRXKfnp9Bgh0NEMeGhGYXEaEDz1b.aTKlUuVoE5v4 E.h1MnI1Y2yIDXFZLGSGIT6atvEhyQT1O9zOgb9XZJHCzjszMDhacCJ3swmwFcJqkb_l8u1zSwSO axHDlFxRTEw8GOlvEeibCxfG2G42rEas0w7bLHjCj192L0QEnTG5HM7yha.p1L2mp91nc1IjAxa. sFK7mph7M0n_GpKmFBD5.mzww8yHZDvnXH2MzOyjDxc5WjVCxCXeP25W7V1NsCsCAgL0QGP4JbuX hFy8H7Nl9puP1tTzp4AFZB0.qbuDzdk4km609uu3fAjAA878IjQFCLXlIhtp20ybcHFV6GMuGKKu I12JnKFUW7HbtO_DrA0AP8djngrCh2St958faxWtfz47Z1sUK5XBiKBqCV1J6C32pOEaEquQrkzk 1OEIswpip6v4pfMtjqp5BwtOwFeFqn.QNmDBCSSxLRu_MtqNsl5oGb1sNhMFRFWSNkAOZmtHxTqa pDqw73.N0SAFZLMajtW1CV6pwGxit6A31uB.kcgxJPIiYYyaai_14WmlXby49MELiaMKZvVq3Uad gOMlPF6ZcSwjLK7piMXyZnB3BBpG7Zo9ev_kbBAalxKfqOuqP5lJrRBwQfbOjdrQHkcr_pa0Xjz3 OXGTS0t25nNDEJm5J6gFXHoYgq1t3zHBa3fw_siLqELR8tB2rU2Sl6GI38gavonrdTf0DV3fp1c3 SaiAVg5b6NJYAzeiGdeyYhp5J8g52FqOU3PTizL05aS9LYl8x5LmUgIp0.2GMQZIJG7UAMp.mn.c IB3g7yWJfoK86Sd9HgFVuQdSFqcKVO74KCAp1J1aTyfOv12s9XXIJwDH0eO1ZYWyjnBk1LV..Y4X wgbU0MBsMgps9zcGeeTtPfGPZ__PKI2UtUUtzh194dBQ6tvXTVkQ4jVnPgDTL46q1G2o58kVM26n ajn1_sZxDebXI32CwpZ028it7yzD4E37hLdeOtagQ9eveQmOUf3JU8N84f2YiXy.jYfvcbimWM3p d4uEvt0NJq3F.r1vhh48Dwp3xVR3A__amko2VlLIk2vjrk2IcZqsVcRu1Rc6w X-Sonic-MF: X-Sonic-ID: 053d314f-4290-4d8b-8f0d-4ee20d303785 Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sat, 15 Jul 2023 00:02:43 +0000 Received: by hermes--production-sg3-67fd64777-vq8mf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ee0a0b7a1c4f144056dcf077bfd7823e; Sat, 15 Jul 2023 00:02:40 +0000 (UTC) From: Po Lu To: Andrey Listopadov Subject: Re: bug#64625: 30.0.50; deleting a focused child frame causes Emacs to ignore all input In-Reply-To: <87ilamtnoe.fsf@gmail.com> (Andrey Listopadov's message of "Fri, 14 Jul 2023 20:12:18 +0300") References: <87ilamtnoe.fsf@gmail.com> Date: Sat, 15 Jul 2023 08:02:36 +0800 Message-ID: <875y6m9h43.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.21647 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 2557 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64625 Cc: 64625@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Andrey Listopadov writes: > Hello. > > I've tried making a mode that creates an alternative window manager > within emacs that uses child frames on an infinite pannable desktop > instead of window splits. When I've implemented the button that closes > the window, I've noticed, that when I'm closing the last input, Emacs > stops recognizing any keyboard events, and the point in the root window > disappears. > > This can be reproduced with the following steps: > > 1. Call (make-frame `((parent-frame . ,(selected-frame)))) > 2. Focus the newly created child-frame (with a mouse or elsehow) > 3. Call C-x 5 0 to kill the frame. > 4. Try typing or calling M-x in the original Emacs window. > > Weirdly enough, the only thing that Emacs responds to and restores the > focus are the arrow keys. You can also go to File > New Frame menu and > it will fix the issue for the new frame, but the old one is still > broken. > > Am I supposed to delete focused child-frames in a different way or is it > a bug? I've tried using `handle-delete-frame' by passing it the list > that resembles the event the function expects, but no luck. I've also > tried calling `select-frame' and `select-window' to change focus to the > root window, but it doesn't help either. > > > In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.38, cairo version 1.17.8) of 2023-07-07 built on toolbox > Repository revision: 37101780243d083e8773c255242aa26614f22a14 > Repository branch: master > System Description: Fedora Linux 38 (Container Image) > > Configured using: > 'configure --without-compress-install --with-native-compilation=aot > --with-pgtk --with-mailutils --with-xwidgets > --prefix=/var/home/alist/.local' Thanks. Would you please instrument `pgtk_new_focus_frame' (in pgtkterm.c) as follows: diff --git a/src/pgtkterm.c b/src/pgtkterm.c index dc2d6477bb5..d62414f4e50 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -4732,6 +4732,9 @@ pgtk_new_focus_frame (struct pgtk_display_info *dpyinfo, struct frame *frame) if (frame != dpyinfo->x_focus_frame) { + fprintf (stderr, "pgtk_new_focus_frame: new frame %p, " + "with outer widget %p\n", (void *) frame, + (void *) FRAME_GTK_OUTER_WIDGET (frame)); /* Set this before calling other routines, so that they see the correct value of x_focus_frame. */ dpyinfo->x_focus_frame = frame; and show me what is printed when the child frame is initially focused, and when you try to focus its parent after it is deleted. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 15 04:50:19 2023 Received: (at 64625) by debbugs.gnu.org; 15 Jul 2023 08:50:19 +0000 Received: from localhost ([127.0.0.1]:44113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKayp-0003GG-68 for submit@debbugs.gnu.org; Sat, 15 Jul 2023 04:50:19 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:62906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKayn-0003G1-Aq for 64625@debbugs.gnu.org; Sat, 15 Jul 2023 04:50:17 -0400 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-98e39784a85so833058466b.1 for <64625@debbugs.gnu.org>; Sat, 15 Jul 2023 01:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689411011; x=1692003011; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=L+qiZhW8MWdk0C/5vihe0gcTprBXanew9PEh8fTQsv4=; b=olGVu/ekDDg4bAT0+GnnMlcz6dESzV8OGd+6TkmzLrBGENcpgaQAw941PTO/30z/iG 0AHV1iZlhRh4Tj2Qx5O8t7UXv6ZDobvVI6fU/B+Mz19sJ9qkDDVJVL7SjSL2tPcxyoZp XUT7x5GT3U9t1p7mf2w6aRicoUuhUklTe3/fECnLjCWt/oKOBfp3ARpOIfF7krMTgM/s d9YgDJJEf+iHkmvfv4asTvTJgyCJ8y/tgXPXrL9FUZ7lYQZSmLmAQZ0jzBxSvaOE2F3f 46B2M9hUfDFayFxhUkKcCqZub6MBxUSifB7wKxD5lguVRG7W9H2LAYh01PP94WhrKnHK 4apw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689411011; x=1692003011; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=L+qiZhW8MWdk0C/5vihe0gcTprBXanew9PEh8fTQsv4=; b=KlMDkuWbQ/XNRO0gMXg0sad29SD4/vT+3CGaky0d/Uyzun5eMQVZ84cw7geiQWEz1D fdfmFguuK1xx0jWqUehpLPk16cZPVcfLiHsq7BvOTdTalIknivWMZxjqRgV1eYNHVVeo IaCwWcNV6KnkunQmHvkrvh5wWylICsR6ziJG1SzejkKi9WUSHqvmX1OeFJF8S2XpeGiP NLAy5Cj7khSmOP/1inTHzP8BCweyvlpkqUrbEnbtb0ehgFHtmHbZ/em0Ks+tkpQH8NpH vUxsw2n70v3JYOTn83PDSERioPbZAePH2NGQrRXjIU+oC1ZxlBIa1c2RAmxDzQvQEkMI LiBw== X-Gm-Message-State: ABy/qLYSXma8GRGyKiLGMOtMH4ZkwlOpfcxvGHMiNrMSXishKeQ/MzIy ZYKkHfAVXbxLrXFObAPSgwnkrnPNQbU= X-Google-Smtp-Source: APBJJlEFpPSbuSQZSaaKMQtSLbuf7PanhQrG4Bx+ecB22DienYh1KuSLZRTVJcNblOPXhC4uyQJl+A== X-Received: by 2002:a17:907:3c1e:b0:98d:4ae:8db9 with SMTP id gh30-20020a1709073c1e00b0098d04ae8db9mr5080758ejc.19.1689411011215; Sat, 15 Jul 2023 01:50:11 -0700 (PDT) Received: from toolbox.smtp.gmail.com (broadband-90-154-70-35.ip.moscow.rt.ru. [90.154.70.35]) by smtp.gmail.com with ESMTPSA id l9-20020a170906a40900b00992b510089asm6498483ejz.84.2023.07.15.01.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 01:50:10 -0700 (PDT) References: <87ilamtnoe.fsf@gmail.com> <875y6m9h43.fsf@yahoo.com> User-agent: mu4e 1.8.11; emacs 30.0.50 From: Andrey Listopadov To: Po Lu Subject: Re: bug#64625: 30.0.50; deleting a focused child frame causes Emacs to ignore all input Date: Sat, 15 Jul 2023 11:28:02 +0300 In-reply-to: <875y6m9h43.fsf@yahoo.com> Message-ID: <875y6ltv7i.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64625 Cc: 64625@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Thanks. Would you please instrument `pgtk_new_focus_frame' (in > pgtkterm.c) as follows: > > diff --git a/src/pgtkterm.c b/src/pgtkterm.c > index dc2d6477bb5..d62414f4e50 100644 > --- a/src/pgtkterm.c > +++ b/src/pgtkterm.c > @@ -4732,6 +4732,9 @@ pgtk_new_focus_frame (struct pgtk_display_info *dpyinfo, struct frame *frame) > > if (frame != dpyinfo->x_focus_frame) > { > + fprintf (stderr, "pgtk_new_focus_frame: new frame %p, " > + "with outer widget %p\n", (void *) frame, > + (void *) FRAME_GTK_OUTER_WIDGET (frame)); > /* Set this before calling other routines, so that they see > the correct value of x_focus_frame. */ > dpyinfo->x_focus_frame = frame; > > and show me what is printed when the child frame is initially focused, > and when you try to focus its parent after it is deleted. Emacs crashes with the following trace: pgtk_new_focus_frame: new frame 0x189a888, with outer widget 0x1aaf340 Fatal error 11: Segmentation fault Backtrace: emacs(emacs_backtrace+0x3b)[0x56aedb] emacs(terminate_due_to_signal+0x6f)[0x45e3c5] emacs[0x45e8c7] emacs[0x569538] emacs[0x5695a9] /lib64/libc.so.6(+0x3db70)[0x7f3d2c4c0b70] emacs[0x694753] emacs[0x694d32] /lib64/libgtk-3.so.0(+0xa1244)[0x7f3d34b60244] /lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f3d3447e4ea] /lib64/libgobject-2.0.so.0(+0x42e16)[0x7f3d344ace16] /lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xb72)[0x7f3d3449d7e2] /lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f3d3449df33] /lib64/libgtk-3.so.0(+0x371174)[0x7f3d34e30174] /lib64/libgtk-3.so.0(gtk_widget_send_focus_change+0xd4)[0x7f3d34e2e5f4] /lib64/libgtk-3.so.0(+0x3817c6)[0x7f3d34e407c6] /lib64/libgtk-3.so.0(+0x381d22)[0x7f3d34e40d22] /lib64/libgobject-2.0.so.0(g_cclosure_marshal_VOID__OBJECTv+0x77)[0x7f3d3447cf67] /lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x114a)[0x7f3d3449ddba] /lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f3d3449df33] /lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x114a)[0x7f3d3449ddba] /lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f3d3449df33] /lib64/libgtk-3.so.0(gtk_widget_grab_focus+0x6a)[0x7f3d34e1fb6a] emacs[0x695ab2] /lib64/libgtk-3.so.0(+0xa1244)[0x7f3d34b60244] /lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f3d3447e4ea] /lib64/libgobject-2.0.so.0(+0x42e16)[0x7f3d344ace16] /lib64/libgobject-2.0.so.0(g_signal_emit_valist+0xb72)[0x7f3d3449d7e2] /lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f3d3449df33] /lib64/libgtk-3.so.0(+0x371174)[0x7f3d34e30174] /lib64/libgtk-3.so.0(+0x208580)[0x7f3d34cc7580] /lib64/libgtk-3.so.0(gtk_main_do_event+0xa3a)[0x7f3d34cc811a] /lib64/libgdk-3.so.0(+0x3a427)[0x7f3d349fe427] /lib64/libgdk-3.so.0(+0x72e0e)[0x7f3d34a36e0e] /lib64/libglib-2.0.so.0(g_main_context_dispatch+0x14c)[0x7f3d3437b39c] emacs[0x6905b8] emacs(gobble_input+0xf1)[0x552411] emacs(unblock_input_to+0x55)[0x552805] emacs(timer_check+0x98)[0x5533e8] emacs[0x553975] emacs[0x553b38] ... The first ``pgtk_new_focus_frame:'' message is displayed when `emacs -Q' is started. Then I've managed to run the make-frame function, but upon focusing it the crash happens (Emacs also crashes if I focus out.) -- Andrey Listopadov From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 03:03:08 2025 Received: (at submit) by debbugs.gnu.org; 21 May 2025 07:03:08 +0000 Received: from localhost ([127.0.0.1]:43553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHdTn-0006va-W1 for submit@debbugs.gnu.org; Wed, 21 May 2025 03:03:08 -0400 Received: from lists.gnu.org ([2001:470:142::17]:43018) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uHOpF-000810-Da for submit@debbugs.gnu.org; Tue, 20 May 2025 11:24:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uHOp7-0001sJ-6x for bug-gnu-emacs@gnu.org; Tue, 20 May 2025 11:24:10 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uHOp4-000653-S9 for bug-gnu-emacs@gnu.org; Tue, 20 May 2025 11:24:08 -0400 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-32807137b94so44967001fa.1 for ; Tue, 20 May 2025 08:24:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747754644; x=1748359444; darn=gnu.org; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=gCwTSuZUsFa+160ATmQ0VcRGqt/VEUvSld1DBzjge2Q=; b=k6V1hJTcJRADAreSTG3e9q2w5NUBW909pyDY9bCna9XUNMTp20s2azfwtB+eKY1oFU c/VWwfa6kJn2wngMtTJ+pGbjSFKlZwAk3y3t3MFjSFXKCm3H8q+KSZii8zmvGXD5YUm1 X4A+6FRL4fuEiKAwaNgkKtTPMHQtJ/6AbHapuFBWkig+TVzPptG7AVv1gSAJyjEEzHB9 E5HjzSLVgin8BtzVOUMHM1ZLOKrBSuC9e9T25sQXnsvMXU2cAR+U7z5rWQOReI6t0TYC TQNBzzidGrV8tLt9AqPP2RU/56Utf8bQWzvXyxxKTXYKMtCO6NqyIl8rFV8k1mj1WfIn 6aZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747754644; x=1748359444; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=gCwTSuZUsFa+160ATmQ0VcRGqt/VEUvSld1DBzjge2Q=; b=qNmKWlRM/pPdQ1gMtnNzSR5vYIaVRU5rWvlA7h7Kfb1ix7rW2dIcmmGw+c5PZyw8B5 9AFboiCZKMrE6del4ryNZ/sIN/EhujHoNDJf4Jh0GXl/Sd8GRilCRDmonypKGTJxsTsc jgNnzTcfGeyqNdOnSiIfGvqz1JJqPcxqmlJCfIderlfRA46c8Ysha5aiBvUlD3gVh67x ob3fLzumE2QRJ6ezBPyNhilQViolfHqveilF7ihdsoPyKIF7gEhnVIpi2SpV8VLI406R fcgfpjwQRhBxxxGJB3vYEZCEMnpVyyIRYXXlizQZ4NglLQ3eTnxOMgKM9ne6FpTPDZK+ B6JA== X-Gm-Message-State: AOJu0Yy6FXN/MV/xVMVXy913jdHe7NMPDDNAAhPeKml3wz2i2fPdNmcC tM+GB5WPVRbf2wqBQLDgEMZB5lrglqiJZQiaOzraMffRP442F01xAWeulzK3nIjk X-Gm-Gg: ASbGncucd952tYr2ZExzjZnHp0E18KPaV66h1jC8txta13Bb6SLJ5YZ3ZH6M5f9onLg 55DkuwSM899DSjw6ek6Skxk+EM+p59od1bTybSxjYZuNBw3bc2OdHxhmMjV4uUNenbt23eTYPTd VvhD7DnmfEDmkPZuYZxqjf4kfW2ZetH2E0eItxK+UDJuwl5yHHTFu+64Ex/fTURfYRSj8rfT2rs Xtnjhl9ar6WxhDC6V0+nTToYVjuPMta3+T+hsv9kHyeuDdHIsrkFGmV9AvZGVJrGtPpBrAbDg+P pBqaea5X99IYqrNPPFBRi1joYpYV5pkvgagLMHwbbaFE4Z/7inhcTyq58XkmVRgzxZfSbKVCPtj jptw= X-Google-Smtp-Source: AGHT+IF7KYe6+6hNDsX89r2myACQ2yU6BoVkjn8xlsFIEjctqamwdiu3hHT5EHFnz1nm5oVH04ZfBg== X-Received: by 2002:a05:651c:41d3:b0:30c:799:8418 with SMTP id 38308e7fff4ca-328083fe394mr47783011fa.4.1747754643709; Tue, 20 May 2025 08:24:03 -0700 (PDT) Received: from [10.0.5.19] (eduradius.ge.infn.it. [193.206.149.14]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-328084b3909sm24399141fa.3.2025.05.20.08.24.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 May 2025 08:24:03 -0700 (PDT) Message-ID: <5af063c9-8152-46c5-9124-1248521156bf@gmail.com> Date: Tue, 20 May 2025 17:24:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Godefroy Vannoye Subject: bug#64625: 30.0.50; deleting a focused child frame causes Emacs to ignore all input To: bug-gnu-emacs@gnu.org Content-Language: en-US, fr, it Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=godefroy.vannoye@gmail.com; helo=mail-lj1-x22d.google.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 21 May 2025 03:03:06 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi, > When I've implemented the button that closes > the window, I've noticed, that when I'm closing the last input, Emacs > stops recognizing any keyboard events, and the point in the root window > disappears. > > This can be reproduced with the following steps: > > 1. Call (make-frame `((parent-frame . ,(selected-frame)))) > 2. Focus the newly created child-frame (with a mouse or elsehow) > 3. Call C-x 5 0 to kill the frame. > 4. Try typing or calling M-x in the original Emacs window. > > Weirdly enough, the only thing that Emacs responds to and restores the > focus are the arrow keys. You can also go to File > New Frame menu and > it will fix the issue for the new frame, but the old one is still > broken. I've been stumbling upon the same issue, on Emacs pretest 30.1.90. > Thanks. Would you please instrument `pgtk_new_focus_frame' (in > pgtkterm.c) as follows: > > diff --git a/src/pgtkterm.c b/src/pgtkterm.c > index dc2d6477bb5..d62414f4e50 100644 > --- a/src/pgtkterm.c > +++ b/src/pgtkterm.c > @@ -4732,6 +4732,9 @@ pgtk_new_focus_frame (struct pgtk_display_info > *dpyinfo, > struct frame *frame) > if (frame != dpyinfo->x_focus_frame) > { > + fprintf (stderr, "pgtk_new_focus_frame: new frame %p, " > + "with outer widget %p\n", (void *) frame, > + (void *) FRAME_GTK_OUTER_WIDGET (frame)); > /* Set this before calling other routines, so that they see > the correct value of x_focus_frame. */ > dpyinfo->x_focus_frame = frame; I've also instrumented `pgtk_new_focus_frame' (in pgtkterm.c) in a slightly different way than suggested, to avoid an Emacs crash:   if (frame != dpyinfo->x_focus_frame)     { +     fprintf (stderr, "pgtk_new_focus_frame: new frame %p", (void *) frame); +     if (frame) { +       fprintf (stderr, ", with outer widget %p\n", (void *) FRAME_GTK_OUTER_WIDGET (frame)); +     } +     else { +       fprintf(stderr, "\n"); +     }       /* Set this before calling other routines, so that they see          the correct value of x_focus_frame.  */       dpyinfo->x_focus_frame = frame; > and show me what is printed when the child frame is initially focused, > and when you try to focus its parent after it is deleted. When the child frame is initially focused:     pgtk_new_focus_frame: new frame (nil)     pgtk_new_focus_frame: new frame 0x555821d935d0, with outer widget (nil) When I try to focus the parent after it is deleted, nothing is printed. When I do the arrow key manipulation to make the frame reactive again, the following is printed:     pgtk_new_focus_frame: new frame 0x55e133e383f8, with outer widget 0x55e133ce6b20 Thanks in advance for any possible progress of this bug, and I stay at your disposal for any necessary test. Godefroy Vannoye In GNU Emacs 30.1.90 (build 14, x86_64-pc-linux-gnu, GTK+ Version  3.24.49, cairo version 1.18.4) of 2025-05-20 built on gvlaptop System Description: Arch Linux Configured using:  'configure --with-pgtk --with-tree-sitter' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings:   value of $LC_ALL: en_US.UTF-8   value of $LC_CTYPE: en_US.UTF-8   value of $LC_MONETARY: fr_FR.UTF-8   value of $LC_NUMERIC: fr_FR.UTF-8   value of $LC_TIME: fr_FR.UTF-8   value of $LANG: en_US.UTF-8   value of $XMODIFIERS: @im=ibus   locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect:   tooltip-mode: t   global-eldoc-mode: t   eldoc-mode: t   show-paren-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   tool-bar-mode: t   menu-bar-mode: t   file-name-shadow-mode: t   global-font-lock-mode: t   font-lock-mode: t   blink-cursor-mode: t   minibuffer-regexp-mode: t   line-number-mode: t   indent-tabs-mode: t   transient-mark-mode: t   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty move-toolbar make-network-process native-compile emacs) Memory information: ((conses 16 49742 11179) (symbols 48 5335 0) (strings 32 13545 1800)  (string-bytes 1 399073) (vectors 16 9168)  (vector-slots 8 130097 9328) (floats 8 24 11) (intervals 56 291 30)  (buffers 992 13)) From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 09:22:19 2025 Received: (at 64625) by debbugs.gnu.org; 21 May 2025 13:22:20 +0000 Received: from localhost ([127.0.0.1]:47440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHjOl-0002X4-9Z for submit@debbugs.gnu.org; Wed, 21 May 2025 09:22:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38778) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uHjOi-0002Wm-0V for 64625@debbugs.gnu.org; Wed, 21 May 2025 09:22:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uHjOc-00028b-Jl; Wed, 21 May 2025 09:22:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=bXoi3bBu9mNi83e1MI7J0OY3CzxsZRMqREq2L89k6Pw=; b=iE1poOI5r0C/zOnQfWPK QGdq0VHaj+FboIybb2GvQ7f1deuwmcztFTQyV4NZU4y2LTZsKUCRgcqvwdp48+xFOI8FY1nIRB9Ay yj9Ru23nRUF1a1Qi7r4R6SA7oDRbBaBVq/hXxqlucfGah8g0simq01MtjaA1IE/UhpxVSPhaThml6 S/HT7FsgTpxHTthdFPhbjP7UTkTz3V1UsGzJtCcwRKUikegcMNhHN9LT+7r/LZJIDua9GkoyhTWt9 pS9+CG5/c8/lONJqMG6LZgeyS+aGKA/XZQd2pyRlaQkQ6z7uzzMSvVfmlAsyl7CVfNCMvcXHj1lfU /izAEEh0juZWbw==; Date: Wed, 21 May 2025 16:22:05 +0300 Message-Id: <86zff66qv6.fsf@gnu.org> From: Eli Zaretskii To: Godefroy Vannoye , Po Lu In-Reply-To: <5af063c9-8152-46c5-9124-1248521156bf@gmail.com> (message from Godefroy Vannoye on Tue, 20 May 2025 17:24:02 +0200) Subject: Re: bug#64625: 30.0.50; deleting a focused child frame causes Emacs to ignore all input References: <87ilamtnoe.fsf@gmail.com> <5af063c9-8152-46c5-9124-1248521156bf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64625 Cc: 64625@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 20 May 2025 17:24:02 +0200 > From: Godefroy Vannoye > > Hi, > > > When I've implemented the button that closes > > the window, I've noticed, that when I'm closing the last input, Emacs > > stops recognizing any keyboard events, and the point in the root window > > disappears. > > > > This can be reproduced with the following steps: > > > > 1. Call (make-frame `((parent-frame . ,(selected-frame)))) > > 2. Focus the newly created child-frame (with a mouse or elsehow) > > 3. Call C-x 5 0 to kill the frame. > > 4. Try typing or calling M-x in the original Emacs window. > > > > Weirdly enough, the only thing that Emacs responds to and restores the > > focus are the arrow keys. You can also go to File > New Frame menu and > > it will fix the issue for the new frame, but the old one is still > > broken. > > I've been stumbling upon the same issue, on Emacs pretest 30.1.90. Seems like PGTK-specific? > > > Thanks. Would you please instrument `pgtk_new_focus_frame' (in > > pgtkterm.c) as follows: > > > > diff --git a/src/pgtkterm.c b/src/pgtkterm.c > > index dc2d6477bb5..d62414f4e50 100644 > > --- a/src/pgtkterm.c > > +++ b/src/pgtkterm.c > > @@ -4732,6 +4732,9 @@ pgtk_new_focus_frame (struct pgtk_display_info > > *dpyinfo, > > struct frame *frame) > > if (frame != dpyinfo->x_focus_frame) > > { > > + fprintf (stderr, "pgtk_new_focus_frame: new frame %p, " > > + "with outer widget %p\n", (void *) frame, > > + (void *) FRAME_GTK_OUTER_WIDGET (frame)); > > /* Set this before calling other routines, so that they see > > the correct value of x_focus_frame. */ > > dpyinfo->x_focus_frame = frame; > > I've also instrumented `pgtk_new_focus_frame' (in pgtkterm.c) in a slightly > different way than suggested, to avoid an Emacs crash: > >   if (frame != dpyinfo->x_focus_frame) >     { > +     fprintf (stderr, "pgtk_new_focus_frame: new frame %p", (void *) > frame); > +     if (frame) { > +       fprintf (stderr, ", with outer widget %p\n", (void *) > FRAME_GTK_OUTER_WIDGET (frame)); > +     } > +     else { > +       fprintf(stderr, "\n"); > +     } >       /* Set this before calling other routines, so that they see >          the correct value of x_focus_frame.  */ >       dpyinfo->x_focus_frame = frame; > > > and show me what is printed when the child frame is initially focused, > > and when you try to focus its parent after it is deleted. > When the child frame is initially focused: > >     pgtk_new_focus_frame: new frame (nil) >     pgtk_new_focus_frame: new frame 0x555821d935d0, with outer widget (nil) > > When I try to focus the parent after it is deleted, nothing is printed. > When I do > the arrow key manipulation to make the frame reactive again, the > following is printed: > >     pgtk_new_focus_frame: new frame 0x55e133e383f8, with outer widget > 0x55e133ce6b20 > > Thanks in advance for any possible progress of this bug, > and I stay at your disposal for any necessary test. > > Godefroy Vannoye > > > In GNU Emacs 30.1.90 (build 14, x86_64-pc-linux-gnu, GTK+ Version >  3.24.49, cairo version 1.18.4) of 2025-05-20 built on gvlaptop > System Description: Arch Linux > > Configured using: >  'configure --with-pgtk --with-tree-sitter' From debbugs-submit-bounces@debbugs.gnu.org Thu May 22 07:32:15 2025 Received: (at 64625) by debbugs.gnu.org; 22 May 2025 11:32:15 +0000 Received: from localhost ([127.0.0.1]:32790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uI49n-0006Dq-3P for submit@debbugs.gnu.org; Thu, 22 May 2025 07:32:15 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:60599) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uHzwq-0000jW-Lx for 64625@debbugs.gnu.org; Thu, 22 May 2025 03:02:41 -0400 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-ad5740dd20eso690121266b.0 for <64625@debbugs.gnu.org>; Thu, 22 May 2025 00:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747897350; x=1748502150; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TX1AKKPAOMbdLR682zlI+1s9Hp3qXXNP4K06qr/yKNc=; b=bvm9o+elwS8b0thI7NVvwWJEcU2psOgccBSbBqO4o3GsXTV1CL5X/M6vc5UmIBg29R VPXOEDb+R023fT+GghSXjCxPHu1r9BKH2qvQd95ebbwS4oGB956/U62BUV7S23TxJiFo +S44cgWKSf4NB6NmY+e7/litQyCAWiVksgvOSHL63Xl5Cg8pzkTxpJI7uGt9nHU3s7hT 8nkuO7DrvYx+b1JVe7G6CwBfgcAZ1aa05Olgyf1/bW0rLLHnLE7+8gg3ugOPZ6PGLLx+ RI8ik9nahJQNO7UcsMI3FWEzho3Q+GUO1QlnppPiG4JbPBr7PwM89HmW1apC3n8MUa23 TOhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747897350; x=1748502150; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TX1AKKPAOMbdLR682zlI+1s9Hp3qXXNP4K06qr/yKNc=; b=nIyFRbZj5VhbZ3RIrNzT8zFrANfuWGR8ZAozaihqNR4A7SZcRfLl/TzLR+8RESa6WJ hgBLIQYMaOTbxcYJI7L5PfG9lUDstz1Xourat3icktiufx5HZ9MpXegFbCq/MS1uaIBY 1+FTlJWMDBQoN8ZWPu5OvQrV5uEFIp3VlBW+TZ+2iQmHdtgXQ2kRDCtZj2xFn7orVe8Z HrgbOUMOW+FT+3QUsGnxNknWjHjojhLZp5eEPtl/870Ur3WSXI8vpYZ592yHUUpfoTs3 98kz/dCXTwhAkDpGnnAieyOySHqyqtlIS3pB45znRePv1Wz7foOuPqn8XmWNH0Eh9Mbt eglw== X-Gm-Message-State: AOJu0YwWIDXsa+084Ll50rbbPnmnei5cXwbHTXljD1zISY3J1YWLNaY6 nM87DdL5JTnQEs/MHZ3KtCcrEwM2EG/2HuA64m6f6RWE6y/1cT7+f1Q1wczB89Wm X-Gm-Gg: ASbGncvy7zIS2QrG/SN98DC8PvIhiFUEZUXV/1VgBy/vCRE7ySoyBs6CatFWv88GDKB k9nWv7VOyd5twN5oBZauuAw1d4EwM6aoiYvuUxJin1LONPAIpFPDzUgTL/NrCuIkpWbq0BuE5zq HnY2WjVCIWjjZ9O4UCxKrdSdwLp6EjnDgapZ+uf3oiszIvwDEgMnrkv77KAO4z9zgBCK2II6Xri p9umtTRpFmeWDnDSbw9spF4InjGzquW6MT7tsGqBmXPeSCfS5t/I8u3F25V7bBX6Lpfzn6OPmer KYTsNDzOpHsuioTByGysTWAkbLxbo4ub02RYwyF3qK/Ne1JOPI/X4WDaHII006QR X-Google-Smtp-Source: AGHT+IFoiJEArZNCnOn40HiFvQLFdgvM0fZloTuAkVUQd6JQ5OhpuHusNm4dNj0Z7cyz/KV3PXfvtA== X-Received: by 2002:a17:907:3f1b:b0:ad5:6dac:ec09 with SMTP id a640c23a62f3a-ad56dacee7emr1315591466b.60.1747897350050; Thu, 22 May 2025 00:02:30 -0700 (PDT) Received: from [192.168.42.251] ([151.38.41.81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad52d497208sm1030739566b.139.2025.05.22.00.02.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 May 2025 00:02:29 -0700 (PDT) Message-ID: <8a34f98a-4fce-44d1-b792-b4ff03a22e62@gmail.com> Date: Thu, 22 May 2025 09:02:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#64625: 30.0.50; deleting a focused child frame causes Emacs to ignore all input To: Eli Zaretskii , Po Lu References: <87ilamtnoe.fsf@gmail.com> <5af063c9-8152-46c5-9124-1248521156bf@gmail.com> <86zff66qv6.fsf@gnu.org> Content-Language: en-US, fr, it From: Godefroy Vannoye In-Reply-To: <86zff66qv6.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64625 X-Mailman-Approved-At: Thu, 22 May 2025 07:32:14 -0400 Cc: 64625@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 21/05/2025 15:22, Eli Zaretskii wrote: > Seems like PGTK-specific? > Indeed, the issue does not happen with a --with-x-toolkit=gtk3 emacs build. From debbugs-submit-bounces@debbugs.gnu.org Sat May 24 06:02:04 2025 Received: (at 64625) by debbugs.gnu.org; 24 May 2025 10:02:04 +0000 Received: from localhost ([127.0.0.1]:57399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uIlhc-0003Th-6D for submit@debbugs.gnu.org; Sat, 24 May 2025 06:02:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40352) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uIlhZ-0003Su-FT for 64625@debbugs.gnu.org; Sat, 24 May 2025 06:02:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uIlhU-0006p2-4q; Sat, 24 May 2025 06:01:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/9bdg0XOsUj0cbwvzAb9nzembYb5qI1zDQCWPNnKQ4k=; b=aGXcOen24hmu u/Np6nqGLQ0IeL9Bi372f5y1BfRTeUaBN9lwWphOInjGAabBZsodyif+yAS+oQTAWe/rj/74Wl12q vOL0XYRneE+YYZHp1LVvkQbJCu8JCe1HUVcfar4wEBbz3xcFYRiaosB2OMsjm8t8BnN1FLy/VfYOv qoQdzCCFlfXJAqUwrS8CBxkM328IwiSRLqoOLDk6Qu1KFlR82Rdtrq5Tqymijm/9F5vlSTuisRl+b fwDF4XOv1WNC1qb3qHussRzWTn/Zb1Dp2P86xkJTSFnzylwtUge32KFoH5WmbnRvGPJD1naEhirAp rYhJ7Md3fItVhBtKf+Z4Tg==; Date: Sat, 24 May 2025 13:01:51 +0300 Message-Id: <86cyby1g4w.fsf@gnu.org> From: Eli Zaretskii To: luangruo@yahoo.com, Godefroy Vannoye In-Reply-To: <8a34f98a-4fce-44d1-b792-b4ff03a22e62@gmail.com> (message from Godefroy Vannoye on Thu, 22 May 2025 09:02:22 +0200) Subject: Re: bug#64625: 30.0.50; deleting a focused child frame causes Emacs to ignore all input References: <87ilamtnoe.fsf@gmail.com> <5af063c9-8152-46c5-9124-1248521156bf@gmail.com> <86zff66qv6.fsf@gnu.org> <8a34f98a-4fce-44d1-b792-b4ff03a22e62@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64625 Cc: 64625@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Thu, 22 May 2025 09:02:22 +0200 > Cc: 64625@debbugs.gnu.org > From: Godefroy Vannoye > > On 21/05/2025 15:22, Eli Zaretskii wrote: > > > Seems like PGTK-specific? > > > Indeed, the issue does not happen with a --with-x-toolkit=gtk3 emacs build. Po Lu, any comments or suggestions? From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 07 04:22:43 2025 Received: (at 64625) by debbugs.gnu.org; 7 Jun 2025 08:22:43 +0000 Received: from localhost ([127.0.0.1]:46754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uNop9-0004iU-HH for submit@debbugs.gnu.org; Sat, 07 Jun 2025 04:22:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45424) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uNop7-0004iC-9x for 64625@debbugs.gnu.org; Sat, 07 Jun 2025 04:22:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uNop1-0003sU-Sw; Sat, 07 Jun 2025 04:22:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ffqLQAs+WYHGk6sFLFK8LK4D4E855ufy1/EHloZuhaU=; b=hZcmfk3g+X0N MDu4Y+xQpYtUhXIizJ2t/xCvuu4pdvfgxsjWZiR8qpwKKEi7+u+8FxYX5dREmIpyA+/GZb3G64WrP ut9eerninPW4AjIy3bddPsuuSfD5DKtt4gMCaRnI/P2rgslrP5ujXRaWEXmWFZldUyf5FjcIQN2SD VwdX1kIvo5TKMyCG1zI0QLfOEweT8Rxf1xKNTBqSUZg7eO+FcFxfXPQs/vSd4+Ec6VR1zDIDyzeOF AqNMbp+X4sv2Ws6OqQiMnrovFfUKW8DFkbdJex14PM3Xqp9uJNqnUaauK1FE8pOmVVR6uDLAmGOUX ki6CQ3+a6dnTRey3R9HeAw==; Date: Sat, 07 Jun 2025 11:22:33 +0300 Message-Id: <865xh8j706.fsf@gnu.org> From: Eli Zaretskii To: luangruo@yahoo.com In-Reply-To: <86cyby1g4w.fsf@gnu.org> (message from Eli Zaretskii on Sat, 24 May 2025 13:01:51 +0300) Subject: Re: bug#64625: 30.0.50; deleting a focused child frame causes Emacs to ignore all input References: <87ilamtnoe.fsf@gmail.com> <5af063c9-8152-46c5-9124-1248521156bf@gmail.com> <86zff66qv6.fsf@gnu.org> <8a34f98a-4fce-44d1-b792-b4ff03a22e62@gmail.com> <86cyby1g4w.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64625 Cc: godefroy.vannoye@gmail.com, 64625@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ping! Po Lu, could you please chime in? > Cc: 64625@debbugs.gnu.org > Date: Sat, 24 May 2025 13:01:51 +0300 > From: Eli Zaretskii > > > Date: Thu, 22 May 2025 09:02:22 +0200 > > Cc: 64625@debbugs.gnu.org > > From: Godefroy Vannoye > > > > On 21/05/2025 15:22, Eli Zaretskii wrote: > > > > > Seems like PGTK-specific? > > > > > Indeed, the issue does not happen with a --with-x-toolkit=gtk3 emacs build. > > Po Lu, any comments or suggestions? > > > > From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 28 04:58:12 2025 Received: (at 64625) by debbugs.gnu.org; 28 Jun 2025 08:58:12 +0000 Received: from localhost ([127.0.0.1]:47778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uVRNy-0002ev-41 for submit@debbugs.gnu.org; Sat, 28 Jun 2025 04:58:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58832) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uVRNu-0002dE-9Q for 64625@debbugs.gnu.org; Sat, 28 Jun 2025 04:58:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uVRNo-0002Sq-Ox; Sat, 28 Jun 2025 04:58:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=c9HWPtA/F9Ze43kx6KWd2aVQcn+VNwKnN19M8zE4sEU=; b=fo1fNLCw/uLq mbJyfFotyXV7mPezySlGw35Cmj4wYU1un6ElgHV8DdqdIFIrc361mqe/c7IyWBA33eDXVhu/ktzdd icmbpU+2Y0y3JRmoO90z5OgrH0uFMeaC8yRHSz1EbiozvRgL782urcChby5qI02Tjx6yvJc8g+t+t pEYflT9/hlQhoqksAYrZpBS63FdT5zrACBMnru7xjaUXNaOrHpuBxQpHAMIlPzrTwDm8pxQ5huOR5 cDpNoDHSxClkYXKU72anky05gwdNSBUg5nCKrVkcBa6/Wot5XauNYZwXobNT1552/pLt7hATeUWoK Khe+XKdHfumRjEI8EK3NMw==; Date: Sat, 28 Jun 2025 11:57:57 +0300 Message-Id: <867c0w8cq2.fsf@gnu.org> From: Eli Zaretskii To: luangruo@yahoo.com In-Reply-To: <865xh8j706.fsf@gnu.org> (message from Eli Zaretskii on Sat, 07 Jun 2025 11:22:33 +0300) Subject: Re: bug#64625: 30.0.50; deleting a focused child frame causes Emacs to ignore all input References: <87ilamtnoe.fsf@gmail.com> <5af063c9-8152-46c5-9124-1248521156bf@gmail.com> <86zff66qv6.fsf@gnu.org> <8a34f98a-4fce-44d1-b792-b4ff03a22e62@gmail.com> <86cyby1g4w.fsf@gnu.org> <865xh8j706.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64625 Cc: godefroy.vannoye@gmail.com, 64625@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ping! Ping! Po Lu, please respond. > Cc: godefroy.vannoye@gmail.com, 64625@debbugs.gnu.org > Date: Sat, 07 Jun 2025 11:22:33 +0300 > From: Eli Zaretskii > > Ping! Po Lu, could you please chime in? > > > Cc: 64625@debbugs.gnu.org > > Date: Sat, 24 May 2025 13:01:51 +0300 > > From: Eli Zaretskii > > > > > Date: Thu, 22 May 2025 09:02:22 +0200 > > > Cc: 64625@debbugs.gnu.org > > > From: Godefroy Vannoye > > > > > > On 21/05/2025 15:22, Eli Zaretskii wrote: > > > > > > > Seems like PGTK-specific? > > > > > > > Indeed, the issue does not happen with a --with-x-toolkit=gtk3 emacs build. > > > > Po Lu, any comments or suggestions? > > > > > > > > > > > > From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 01 10:21:04 2025 Received: (at 64625) by debbugs.gnu.org; 1 Jul 2025 14:21:04 +0000 Received: from localhost ([127.0.0.1]:57500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uWbr4-0006sa-7J for submit@debbugs.gnu.org; Tue, 01 Jul 2025 10:21:03 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:53270) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uWYia-0006aB-3M for 64625@debbugs.gnu.org; Tue, 01 Jul 2025 07:00:07 -0400 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3a6e8b1fa37so2719447f8f.2 for <64625@debbugs.gnu.org>; Tue, 01 Jul 2025 04:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751367598; x=1751972398; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=gDAzHCT+mrqKyPl//3HT+NPqJkXTovsQA7o7dVe0H8U=; b=aQ2PJGmY/cbCUQhx5zfKNlFf14XfsuZg8CyqgwdJ/cJwmdXWnCv/WeKF3tCnRn763i biZufpdinGfRgqSQXudasaaV46kCm2KQlOat7VvngprIoPbQcLG+SQY0w286QN+JgAC+ UTlDxkAGK+cy9avxYNr4s9lpfTMtUbIt85FETMa1IzEsbuNDD8FbhTy5X44tx/h50B/x 8pMXeZ27xzckRzmxV/uBNQfSFvDtW0YhDCld1wuIF7YhyGqiOrZoKey3ggm7Bib1KrV7 jEo9v5gGd56myCdaZPBBirkain/Bzfpd+pPqihuNvuptP2XdlXDeTtgJOpu5bj0xVtFR paWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751367598; x=1751972398; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gDAzHCT+mrqKyPl//3HT+NPqJkXTovsQA7o7dVe0H8U=; b=oUuTrVq2koJw5Cd+5dRvKwGj8ZO0pvDsbMnxBc0Q3Kq0uBFWOU8Qk4I2jfRUyOB7pz EpVUfz3uvrU0gq/ohj8W/ezpVnIygQFZ14nvhiNvJ0USrOryrYYmU3I2ru7lzhaOHXUZ QxdPbP2OaVC2sKXxgmwdfMSUhHwyBCA0kf2CylLCLUc5dxWe7TM4YQh6iPAnx/qDYEIO lQkqkbFBr0pKufLJD0ebG4GfcvOy1JJ9fJt6pge5KrhcHMp23F5Wr8mWNE9wt0zUd+Xb wcKrd8qkSrLRKLkF12M8tsqtODwJYEsSYD+H6jJt/7xGnzOmbxYD2ubHsvte4ZxU08gE RlbQ== X-Gm-Message-State: AOJu0YziHUlqhWmrssGlluv7F5257FjxnDfMfklcYuTBhUHXaHhY28jB aeR+2Bn25/XGUK14JBMu7VrhZ2d2RZIjxRQy26VC65UeR0ezO0wH4HIH X-Gm-Gg: ASbGncuppQFFKgXQvjgATHjgoMA7rJz4XlefYBRPGDjJ14HSM9XTUlUXVRR1OQeqida XdP9CNNzy5Mz1yFVP9sEJ1BEmYObFHQ/Kj0/jYlX6NW9g8bvxNaI1bxNfk9ML8mWQw1NCbMAHME VL/bHlw8zjXlZhlPRULLzHja31APDbzg7dYmAHFB97oRSbftXid5PR2/PmXag09AxXxkhUc9TNb 38OlQzHRNy3eQDZHwIDS4f4Y70FeKM4whjLU7rFWZNiMPnYWyMbBHuoCs1xmCdJP5IsQeZ8cjw0 ILGHpu6H4eev9Kl7SBeOVjbP06zcoN1166UniQeaBpG/htIG10Rfi4mWmiSnF2Srsx2q6sSa2Og 1Aku9+cq0QoHX17oG20PZPA7Cp5hc3/zg X-Google-Smtp-Source: AGHT+IG4RFuD2zOBgsRLscEp8OfIKHmirqmL+GzBr9Q94XDsnjHVbnOPfmS7pKx32XoWtQyzE1L4mA== X-Received: by 2002:a5d:44c2:0:b0:3a5:2ec5:35a3 with SMTP id ffacd0b85a97d-3a8ff8f4eebmr13998706f8f.45.1751367597212; Tue, 01 Jul 2025 03:59:57 -0700 (PDT) Received: from [10.21.99.239] (client-8-198.eduroam.oxuni.org.uk. [192.76.8.198]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a892e5f8e1sm12736435f8f.88.2025.07.01.03.59.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Jul 2025 03:59:56 -0700 (PDT) Message-ID: <04693820-e7c4-4107-aae3-3ed6f78b68b2@gmail.com> Date: Tue, 1 Jul 2025 11:59:55 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#64625: 30.0.50; deleting a focused child frame causes Emacs to ignore all input To: Eli Zaretskii , luangruo@yahoo.com References: <87ilamtnoe.fsf@gmail.com> <5af063c9-8152-46c5-9124-1248521156bf@gmail.com> <86zff66qv6.fsf@gnu.org> <8a34f98a-4fce-44d1-b792-b4ff03a22e62@gmail.com> <86cyby1g4w.fsf@gnu.org> <865xh8j706.fsf@gnu.org> <867c0w8cq2.fsf@gnu.org> Content-Language: en-US, fr, it From: Godefroy Vannoye In-Reply-To: <867c0w8cq2.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64625 X-Mailman-Approved-At: Tue, 01 Jul 2025 10:20:59 -0400 Cc: 64625@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, I started to have a look in pgtkterm.c, but since it's my first time looking at the emacs C codebase I haven't yet understood the source of the bug. Po Lu, if you could please give me some insight or starting trail to help me investigate? I would like to help as much as possible. Thanks in advance, Cheers, Godefroy On 28/06/2025 09:57, Eli Zaretskii wrote: > Ping! Ping! Po Lu, please respond. > >> Cc: godefroy.vannoye@gmail.com, 64625@debbugs.gnu.org >> Date: Sat, 07 Jun 2025 11:22:33 +0300 >> From: Eli Zaretskii >> >> Ping! Po Lu, could you please chime in? >> >>> Cc: 64625@debbugs.gnu.org >>> Date: Sat, 24 May 2025 13:01:51 +0300 >>> From: Eli Zaretskii >>> >>>> Date: Thu, 22 May 2025 09:02:22 +0200 >>>> Cc: 64625@debbugs.gnu.org >>>> From: Godefroy Vannoye >>>> >>>> On 21/05/2025 15:22, Eli Zaretskii wrote: >>>> >>>>> Seems like PGTK-specific? >>>>> >>>> Indeed, the issue does not happen with a --with-x-toolkit=gtk3 emacs build. >>> Po Lu, any comments or suggestions? >>> >>> >>> >>> >> >> >> From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 12 03:34:59 2025 Received: (at 64625) by debbugs.gnu.org; 12 Jul 2025 07:34:59 +0000 Received: from localhost ([127.0.0.1]:43364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uaUl9-0008O7-2Y for submit@debbugs.gnu.org; Sat, 12 Jul 2025 03:34:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45022) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uaUl6-0008NW-VV for 64625@debbugs.gnu.org; Sat, 12 Jul 2025 03:34:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uaUl1-0007NX-Kk; Sat, 12 Jul 2025 03:34:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=9UjO/INXXx2MHS8cTVOcgehzki58ZkoN39VHhnPc0jM=; b=fQOCH2qhX+uk 0DEfc6nXvEMkFWiQJtRWL+9tvwQocJdNweljqPml7dC2aigw7bE8G+l4+2X1g0rESYildP1yOGo2u eeN0Ky83LBvdYA0HPhiaP1U4eP8woKcNYfbtlnYAROCDooJfnwh2OnBh3lwiQ1ugKnnePf2wzQ1vg J7wQQ/Nxv6h195DXAs5krK9v3G52aR57dRZVjuNYMOInvpe0GC6t15GI6wiNKDmGxSYoTqMrgKLJZ eA3/H87FBD7IEDGvy7p83u1bDPGgZhtAZnWd5S1UpFRpPCFlFnYm+dzuwSNDuBvoiUcJViHZyCtmu bRUP0qzRqQl6/ZDLHuu56Q==; Date: Sat, 12 Jul 2025 10:34:48 +0300 Message-Id: <86cya5g8vb.fsf@gnu.org> From: Eli Zaretskii To: luangruo@yahoo.com, Godefroy Vannoye In-Reply-To: <04693820-e7c4-4107-aae3-3ed6f78b68b2@gmail.com> (message from Godefroy Vannoye on Tue, 1 Jul 2025 11:59:55 +0100) Subject: Re: bug#64625: 30.0.50; deleting a focused child frame causes Emacs to ignore all input References: <87ilamtnoe.fsf@gmail.com> <5af063c9-8152-46c5-9124-1248521156bf@gmail.com> <86zff66qv6.fsf@gnu.org> <8a34f98a-4fce-44d1-b792-b4ff03a22e62@gmail.com> <86cyby1g4w.fsf@gnu.org> <865xh8j706.fsf@gnu.org> <867c0w8cq2.fsf@gnu.org> <04693820-e7c4-4107-aae3-3ed6f78b68b2@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64625 Cc: 64625@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ping! Po Lu, could you please help Godefroy? > Date: Tue, 1 Jul 2025 11:59:55 +0100 > Cc: 64625@debbugs.gnu.org > From: Godefroy Vannoye > > Hi, > > I started to have a look in pgtkterm.c, but since it's my first time looking > at the emacs C codebase I haven't yet understood the source of the bug. > > Po Lu, if you could please give me some insight or starting trail to help > me investigate? I would like to help as much as possible. > > Thanks in advance, > > Cheers, > > Godefroy > > On 28/06/2025 09:57, Eli Zaretskii wrote: > > Ping! Ping! Po Lu, please respond. > > > >> Cc: godefroy.vannoye@gmail.com, 64625@debbugs.gnu.org > >> Date: Sat, 07 Jun 2025 11:22:33 +0300 > >> From: Eli Zaretskii > >> > >> Ping! Po Lu, could you please chime in? > >> > >>> Cc: 64625@debbugs.gnu.org > >>> Date: Sat, 24 May 2025 13:01:51 +0300 > >>> From: Eli Zaretskii > >>> > >>>> Date: Thu, 22 May 2025 09:02:22 +0200 > >>>> Cc: 64625@debbugs.gnu.org > >>>> From: Godefroy Vannoye > >>>> > >>>> On 21/05/2025 15:22, Eli Zaretskii wrote: > >>>> > >>>>> Seems like PGTK-specific? > >>>>> > >>>> Indeed, the issue does not happen with a --with-x-toolkit=gtk3 emacs build. > >>> Po Lu, any comments or suggestions? > >>> > >>> > >>> > >>> > >> > >> > >> > From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 26 04:42:56 2025 Received: (at 64625) by debbugs.gnu.org; 26 Jul 2025 08:42:56 +0000 Received: from localhost ([127.0.0.1]:39742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ufaUa-0000QS-3V for submit@debbugs.gnu.org; Sat, 26 Jul 2025 04:42:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56816) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ufaUY-0000Q4-3F for 64625@debbugs.gnu.org; Sat, 26 Jul 2025 04:42:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ufaUS-00054x-Pp; Sat, 26 Jul 2025 04:42:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=IPXrELUaw3EulbI4Zf1KQMMranldWXjRNg6mpcdGtqc=; b=pTH0QiuFtcJx TA47p9QEk6E1DsXm4p7rpgzKXxXAXJkJT4qtLzZwTctngkmfUNCox47LIe8mIcj5/ysclewRwVuLB M5aLGTy+pZPfKM1va+M8kqqqi1cTz07EqO2NIOfzBRmL0dn6V5sI7rcK98g+MN6Tcx9b5XJO+BQ7B OeYMUecey+faESKolP4zPsp70GYIzXLi+Zt6BpE75FKldte4cEKLVP7rvepKU/lwmtHURiWVlKw7X 6phtwqaYK0nIAJMcyzLp9eLSHlkG6I+nS2nPCTdt5IDicaB64U3jV4ta+e9bsLZ0ElLtXNq24seEn Ovfu4feX9S86YpH35NGrig==; Date: Sat, 26 Jul 2025 11:42:46 +0300 Message-Id: <86wm7v1gxl.fsf@gnu.org> From: Eli Zaretskii To: luangruo@yahoo.com, waylandthrowaway@gmail.com In-Reply-To: <86cya5g8vb.fsf@gnu.org> (message from Eli Zaretskii on Sat, 12 Jul 2025 10:34:48 +0300) Subject: Re: bug#64625: 30.0.50; deleting a focused child frame causes Emacs to ignore all input References: <87ilamtnoe.fsf@gmail.com> <5af063c9-8152-46c5-9124-1248521156bf@gmail.com> <86zff66qv6.fsf@gnu.org> <8a34f98a-4fce-44d1-b792-b4ff03a22e62@gmail.com> <86cyby1g4w.fsf@gnu.org> <865xh8j706.fsf@gnu.org> <867c0w8cq2.fsf@gnu.org> <04693820-e7c4-4107-aae3-3ed6f78b68b2@gmail.com> <86cya5g8vb.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64625 Cc: godefroy.vannoye@gmail.com, 64625@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ping! Ping! Po Lu, please respond. > Cc: 64625@debbugs.gnu.org > Date: Sat, 12 Jul 2025 10:34:48 +0300 > From: Eli Zaretskii > > Ping! Po Lu, could you please help Godefroy? > > > Date: Tue, 1 Jul 2025 11:59:55 +0100 > > Cc: 64625@debbugs.gnu.org > > From: Godefroy Vannoye > > > > Hi, > > > > I started to have a look in pgtkterm.c, but since it's my first time looking > > at the emacs C codebase I haven't yet understood the source of the bug. > > > > Po Lu, if you could please give me some insight or starting trail to help > > me investigate? I would like to help as much as possible. > > > > Thanks in advance, > > > > Cheers, > > > > Godefroy > > > > On 28/06/2025 09:57, Eli Zaretskii wrote: > > > Ping! Ping! Po Lu, please respond. > > > > > >> Cc: godefroy.vannoye@gmail.com, 64625@debbugs.gnu.org > > >> Date: Sat, 07 Jun 2025 11:22:33 +0300 > > >> From: Eli Zaretskii > > >> > > >> Ping! Po Lu, could you please chime in? > > >> > > >>> Cc: 64625@debbugs.gnu.org > > >>> Date: Sat, 24 May 2025 13:01:51 +0300 > > >>> From: Eli Zaretskii > > >>> > > >>>> Date: Thu, 22 May 2025 09:02:22 +0200 > > >>>> Cc: 64625@debbugs.gnu.org > > >>>> From: Godefroy Vannoye > > >>>> > > >>>> On 21/05/2025 15:22, Eli Zaretskii wrote: > > >>>> > > >>>>> Seems like PGTK-specific? > > >>>>> > > >>>> Indeed, the issue does not happen with a --with-x-toolkit=gtk3 emacs build. > > >>> Po Lu, any comments or suggestions? > > >>> > > >>> > > >>> > > >>> > > >> > > >> > > >> > > > > > >