From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrey Listopadov Newsgroups: gmane.emacs.bugs Subject: bug#64625: 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34029"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.11; emacs 30.0.50 To: 64625@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 14 19:21:29 2023 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 1qKMTx-0008iJ-La for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Jul 2023 19:21:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKMTY-0005T6-Rh; Fri, 14 Jul 2023 13:21:04 -0400 Original-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 1qKMTW-0005Sb-Pt for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2023 13:21:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qKMTW-0007El-Hn for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2023 13:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKMTV-0007th-RM for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2023 13:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrey Listopadov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jul 2023 17:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64625 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168935524930329 (code B ref -1); Fri, 14 Jul 2023 17:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jul 2023 17:20:49 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265114 Archived-At: 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))