From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jos de Kloe Newsgroups: gmane.emacs.bugs Subject: bug#58164: 28.1; keybinding C-z to suspend-frame in fvwm windowmanager seems to get lost after first use. Date: Mon, 3 Oct 2022 08:37:06 +0200 Message-ID: <40dcca87-666a-2c21-2e9d-5cf82fb4b8b3@planet.nl> References: <492bc12c-43e1-3752-ffe6-09568aeb94db@planet.nl> <83bkqyf57s.fsf@gnu.org> <617ec97b-f7b3-216d-0592-c8c8968e41fe@planet.nl> <83tu4pe4cm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12374"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Cc: 58164@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 03 08:43:00 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 1ofFAJ-00033l-Kx for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 08:42:59 +0200 Original-Received: from localhost ([::1]:56926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofFAI-00078b-G6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 02:42:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofF5W-0005Ie-53 for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 02:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49677) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofF5V-0000u6-Sb for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 02:38:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofF5V-0006nz-Nb for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 02:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jos de Kloe Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Oct 2022 06:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 58164-submit@debbugs.gnu.org id=B58164.166477903526098 (code B ref 58164); Mon, 03 Oct 2022 06:38:01 +0000 Original-Received: (at 58164) by debbugs.gnu.org; 3 Oct 2022 06:37:15 +0000 Original-Received: from localhost ([127.0.0.1]:48755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofF4l-0006mr-2n for submit@debbugs.gnu.org; Mon, 03 Oct 2022 02:37:15 -0400 Original-Received: from ewsoutbound.kpnmail.nl ([195.121.94.184]:47037) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofF4j-0006md-0N for 58164@debbugs.gnu.org; Mon, 03 Oct 2022 02:37:13 -0400 X-KPN-MessageId: a0a47964-42e5-11ed-bd66-005056994fde Original-Received: from smtp.kpnmail.nl (unknown [10.31.155.7]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id a0a47964-42e5-11ed-bd66-005056994fde; Mon, 03 Oct 2022 08:35:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=planet.nl; s=planet01; h=content-type:from:to:subject:mime-version:date:message-id; bh=ds7Wdn5yJAN2FiXuMs2vU0KWdO/G7+MWQ88UNcXe38w=; b=SGgOweYaXAd+G0dJFUAyS8My/QyyVTazeiHucjGeCmC9zMlg4TrwtD3HeMk41AMiVeWQ1KdFWKvDi wahnNwEgT93QMp5mQAy02WiVpunLExJ8VjpTZFjUSMG1+SFuUddvWvknIF4VvLoxCfssX0vyXz++Ea 13U9gSJcwMYA1A44= X-Originating-IP: 77.165.1.104 Original-Received: from [192.168.2.20] (77-165-1-104.fixed.kpn.net [77.165.1.104]) by smtp.kpnmail.nl (Halon) with ESMTP id c294e72c-42e5-11ed-8bc9-005056998788; Mon, 03 Oct 2022 08:36:49 +0200 (CEST) Content-Language: en-US In-Reply-To: <83tu4pe4cm.fsf@gnu.org> 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:244285 Archived-At: Just stepping through the instructions in this x_iconify_frame function I see the following happening: first time I hit C-z: Thread 1 "emacs" hit Breakpoint 1, x_iconify_frame (f=0xe46c70) at xterm.c:11976 11976 { (gdb) n 11982 if (FRAME_DISPLAY_INFO (f)->highlight_frame == f) (gdb) n 11983 FRAME_DISPLAY_INFO (f)->highlight_frame = 0; (gdb) n 11985 if (FRAME_ICONIFIED_P (f)) (gdb) n 11988 block_input (); (gdb) n 11990 gui_set_bitmap_icon (f); (gdb) n 11993 if (FRAME_GTK_OUTER_WIDGET (f)) (gdb) n 11995 if (! FRAME_VISIBLE_P (f)) (gdb) n 11998 gtk_window_iconify (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f))); (gdb) n 11999 SET_FRAME_VISIBLE (f, 0); (gdb) n 12000 SET_FRAME_ICONIFIED (f, true); (gdb) n 12001 unblock_input (); (gdb) n 12002 return; second time I hit C-z: Thread 1 "emacs" hit Breakpoint 1, x_iconify_frame (f=0xe46c70) at xterm.c:11976 11976 { (gdb) n 11982 if (FRAME_DISPLAY_INFO (f)->highlight_frame == f) (gdb) n 11983 FRAME_DISPLAY_INFO (f)->highlight_frame = 0; (gdb) n 11985 if (FRAME_ICONIFIED_P (f)) (gdb) n Ffuncall (nargs=1, args=args@entry=0x7fffffffd258) at eval.c:3048 3048 lisp_eval_depth--; (gdb) n 3049 if (backtrace_debug_on_exit (specpdl + count)) (gdb) n 3051 specpdl_ptr--; (gdb) n 3052 return val; (gdb) n I hope this helps to zoom in on the problem. On 9/30/22 08:58, Eli Zaretskii wrote: >> Date: Fri, 30 Sep 2022 08:45:33 +0200 >> Cc: 58164@debbugs.gnu.org >> From: Jos de Kloe >> >> This is the output I get: >> >> ;; next-line >> C-z ;; suspend-frame >> C-z ;; suspend-frame >> C-h l ;; view-lossage > > So I guess the problem is in the X iconify_frame_hook, which is > x_iconify_frame. If you can step through that function in a debugger > and see what's going on there, it might help. Maybe Emacs thinks the > frame is already iconified, and thus does nothing? > > Thanks.