From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#42655: 27.1; iconify-frame on a Lucid build may stuck the frame Date: Wed, 12 Aug 2020 19:50:32 +0300 Message-ID: <83a6yzolk7.fsf@gnu.org> References: <87lfiycihg.fsf@calancha-pc.dy.bbexcite.jp> <83lfiu9xes.fsf@gnu.org> <83h7ti9qmb.fsf@gnu.org> <83v9hx7x21.fsf@gnu.org> <874kpgj4z5.fsf@gmail.com> <83sgd08q2v.fsf@gnu.org> <871rkki44t.fsf@gmail.com> <83k0yb999n.fsf@gnu.org> <835z9v80iw.fsf@gnu.org> <87mu36wuch.fsf@gmail.com> <83wo2a7jb1.fsf@gnu.org> <87r1siees8.fsf@gmail.com> <83pn827awm.fsf@gnu.org> <87y2mpmk16.fsf@gmail.com> <83a6z36glb.fsf@gnu.org> <87o8ni9ymw.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29250"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eggert@cs.ucla.edu, monnier@iro.umontreal.ca, 42655@debbugs.gnu.org, uyennhi.qm@gmail.com, bhavin7392@gmail.com To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 12 18:51:13 2020 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 1k5ty4-0007SU-Ks for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 18:51:12 +0200 Original-Received: from localhost ([::1]:35458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5ty3-0003il-Dx for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Aug 2020 12:51:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5txu-0003h9-Hz for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 12:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33811) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5txu-0005HX-8r for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 12:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5txu-0000Mo-6z for bug-gnu-emacs@gnu.org; Wed, 12 Aug 2020 12:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Aug 2020 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42655 X-GNU-PR-Package: emacs Original-Received: via spool by 42655-submit@debbugs.gnu.org id=B42655.15972510561390 (code B ref 42655); Wed, 12 Aug 2020 16:51:02 +0000 Original-Received: (at 42655) by debbugs.gnu.org; 12 Aug 2020 16:50:56 +0000 Original-Received: from localhost ([127.0.0.1]:45357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5txo-0000MM-B9 for submit@debbugs.gnu.org; Wed, 12 Aug 2020 12:50:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5txh-0000Lm-Se for 42655@debbugs.gnu.org; Wed, 12 Aug 2020 12:50:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37695) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5txb-0005B5-Hi; Wed, 12 Aug 2020 12:50:43 -0400 Original-Received: from [176.228.60.248] (port=2224 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k5txa-0007qG-Ts; Wed, 12 Aug 2020 12:50:43 -0400 In-Reply-To: <87o8ni9ymw.fsf@gmail.com> (message from Tino Calancha on Mon, 10 Aug 2020 19:52:39 +0200) 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:184839 Archived-At: > From: Tino Calancha > Cc: 42655@debbugs.gnu.org, eggert@cs.ucla.edu, uyennhi.qm@gmail.com, > bhavin7392@gmail.com, monnier@iro.umontreal.ca, dancol@dancol.org > Date: Mon, 10 Aug 2020 19:52:39 +0200 > > > I see in xterm.c that we already have some special treatment of the > > Gnome Shell, see below. Could you please put a breakpoint there, and > > tell why we don't set the frame's visible flag and don't reset its > > iconified flag when the PropertyNotify event is received? Your event > > log seems to indicate we get quite a few of PropertyNotify events when > > the frame is de-iconified. > That break point is only reached while creating the frame or clicking > the menu bars. Once the frame is created, I am not able to reach that > part by minimize/unminimize. > > I have printed out `event->type` right before the switch(event->type) > I enter the break point at PropertyNotify when `event->type` equals 28. > The xev utility is printing out PropertyNotify for a bunch of different > values of `event->type`, not just for 28. > > > Naively, I can workaround this issue by checking for an iconified frame at > FocusIn: this fixes this issue in both `emacs -Q` and my > custom Emacs session. That would be my next idea, so please go ahead and install this. And thanks for all the footwork in investigating this issue. > + /* Some WMs (e.g. Mutter in Gnome Shell), don't unmap minimized/iconified windows; > + thus, for those WMs we won't get a MapNotify when unminimizing/deconifying. > + Check here if we are deconizing a window (Bug42655). */ Please M-q in this comment, to make its lines shorter.