From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55836: 29.0.50; (iconify-frame) freezes buffer view under Wayland. Date: Mon, 20 Jun 2022 08:51:18 +0800 Message-ID: <87r13kxim1.fsf@yahoo.com> References: <87wndsro4z.fsf@yahoo.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32984"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 55836@debbugs.gnu.org To: whainte@outlook.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 20 02:52:10 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 1o35eD-0008Oi-BN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Jun 2022 02:52:10 +0200 Original-Received: from localhost ([::1]:53900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o35eC-0003Bo-Ca for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 20:52:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o35e6-0003Bf-5d for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 20:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o35e5-0004Lm-Tm for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 20:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o35e5-0003LG-Sa for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 20:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jun 2022 00:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55836 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 55836-submit@debbugs.gnu.org id=B55836.165568629512811 (code B ref 55836); Mon, 20 Jun 2022 00:52:01 +0000 Original-Received: (at 55836) by debbugs.gnu.org; 20 Jun 2022 00:51:35 +0000 Original-Received: from localhost ([127.0.0.1]:53531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o35df-0003KZ-Ef for submit@debbugs.gnu.org; Sun, 19 Jun 2022 20:51:35 -0400 Original-Received: from sonic309-22.consmr.mail.ne1.yahoo.com ([66.163.184.148]:46717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o35dd-0003KJ-0U for 55836@debbugs.gnu.org; Sun, 19 Jun 2022 20:51:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1655686286; bh=X/Xa4oywCGoMtnVjAVpVeg2eVw3PjxY9FPr2wW2AeSs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=PC4zUJZfYFAcYLCRNYqPOxxHNAb13wRs88sOe8LrfXA2N+U/fIMREFHlXE8iRsqQxokTKyKoYKLZKM5xixgB98vXzai18FSRZ2YynfJYpkF8cT7Rt1y0wnFeky/9avdtmNquDOwWz9mtye4NiFcrAg9iohwyqEdLdJ9u3XIYFam8F0FyDid3eCY+w4Azt4WLdx2SG015ana9f44Kzab3mYmi6V1WnV3rf3rtQh5lsbp5zIdeaaABC+pknOBoDDzokaLNn5NpIebksycqTByzvnGMy2+/xqmsspQBjij+s76EWqYsCQYVpjp1XLbTXZ3ma02f3aUwV6LpNt4FaSK+8Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1655686286; bh=RT55ZMdtx1/S9sijgchMw5rJWU1AyiMr3NV+N2dpMYB=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=bLY9NtWNH7tSp/NKXoSh/9MCV3vOOaZ6yvR4FxlGj+rCpAgS3iERPkahsF3nPlvurzETCJLorKToqYEeeq7I13594fQTVBxxsAAYXoAzlTkgMCdZKeN8OOJgwJaP9csTq4u+FiJIO2jgHXHOdkuqHbHHtdZyHflRgQkhrmp1BCaSXBuvQeXCE15P/cGX2Igucq4e262jb3QD122EfMPyIz1IabWfabmE0moBNkW+ybcc2s0tjQm+qgVljqtRRFtpKN2Ro7pGD268ps2dhMsYTRs0NyDAWBVshUyUA7zmFPLedjhyfXemzPFgOIGufCd7Qh7JHCghrAraI3YwHJs1pg== X-YMail-OSG: qOMWG0oVM1msl1ke3_I.JLauY6sLIZOVXNAcUi1dmhngV8xo_SAlcxsWC08XdQn mdglTgKtPU8dE.fUwpTxPy6nvUbrCPzF_HQNwPzQEYgoRqF9FBQS7i15mt.bb9tLxfYPtEDRNZON YKAZrGMYdHLYrbBHmm4URbuUFW.5hFJPLEGnmPEFlEz2qWotmsMLl4A3oCgd021rKFkjLzEM1fI3 8fwfvCFmiwX2qrB1ddolw5CUboKnjPqM5vZQc9p1jGC23cl31KMCil7W7G7Qui.H53YJuvByVvJV E0NcwISLxOyr0K7dcO3CLv8jyi3JohDfoMZVfRN9F.wlzof52gkSbqryOx_en1XTt2hrUXFf1fAj IOC7IZHWevNuRaSwq.xe5zMXw7CNnwRRN_6QiHZokWnndPO7ODJyr.ghpWXSzjJW8guf75N98tvy FOso12CRGBCqGNyGdHrF3vq7noEcet19T4h.4pEKaZ_pE3vEiTyKR3LhZ7gkSTk5UpKLIFYZ654J h6Rqqlj_N0Kzwbgul3TcO355AG7_P3ikA5lhQ0Lef5TFTTkaI8_eQQXYfs2z0qQBWEpDihfzUAsb HooICcYgl_aIOOs5N5Dv39fJl7.57nL4c4WwUfsvos5cKVci3nXFJ8EiLxPzJPVmuAHsXOc1aPhN Y_KpuF24.fnDkosIFceZYJ1TpfpUS.bOeGXDJsRImJt4bn0dJGAYO8tToq_ZYHEIDk6d1PUurP69 .Vuktn2svS7DYaB0P2dpc3ER1YHzqulQTOtlKDK_U.Y03rz_Y_MWhRfu0flX3kaAhbiQtqr.E.nT MB0_WoR3._mZg7gLVNBvVayXA3UIN8W9N0_Bini09k X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Mon, 20 Jun 2022 00:51:26 +0000 Original-Received: by hermes--canary-production-sg3-559fcd5995-5cxt2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f572122fa5f36997efc5b531f9ed710a; Mon, 20 Jun 2022 00:51:23 +0000 (UTC) In-Reply-To: (whainte@outlook.com's message of "Mon, 20 Jun 2022 00:09:37 +0200") X-Mailer: WebService/1.1.20280 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:234832 Archived-At: whainte@outlook.com writes: >> if (event->window_state.new_window_state >> & GDK_WINDOW_STATE_ICONIFIED) >> SET_FRAME_ICONIFIED (f, true); >> else >> { >> --> FRAME_X_OUTPUT (f)->has_been_visible = true; >> inev.ie.kind = DEICONIFY_EVENT; >> XSETFRAME (inev.ie.frame_or_window, f); >> SET_FRAME_ICONIFIED (f, false); >> } >> > This breakpoint actually hits whenever the emacs frame gets focus, and > makes debugging quite annoying. > However, by inputting M-x + during the breakpoint and using the > mouse when the frame does not > have focus, it is possible to execute (iconify-frame) interactively > after triggering the breakpoint. > > Here's the strange thing: when a breakpoint is set there, the issue is > not present; when the breakpoint > is deleted and the procedure repeated, the issue reappears. > > I would conjecture that this has to do with the state of the frame at > the moment of (de-)/iconification, > since when the breakpoint IS present, I would have to be looking at > gdb, cycling through 'continue's. I didn't understand what you said, but I guess you should make the breakpoint conditional on "FRAME_ICONIFIED_P (f)".