From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#55836: 29.0.50; (iconify-frame) freezes buffer view under Wayland. Date: Fri, 30 Sep 2022 14:36:10 +0200 (CEST) Message-ID: References: <871qrzbqv3.fsf@yahoo.com> <87wn9rab1g.fsf@yahoo.com> <87sfkf9ej5.fsf@yahoo.com> <87a66lacjv.fsf@yahoo.com> <874jwr6ndk.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28509"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55836@debbugs.gnu.org, Tino Calancha To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 30 14:48:21 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 1oeFRF-0007Bw-N7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Sep 2022 14:48:21 +0200 Original-Received: from localhost ([::1]:45332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeFRE-0000g6-QT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Sep 2022 08:48:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeFGJ-0008Qf-1Q for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2022 08:37:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeFGI-0004AL-PV for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2022 08:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oeFGI-0001Gi-I8 for bug-gnu-emacs@gnu.org; Fri, 30 Sep 2022 08:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Sep 2022 12:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55836 X-GNU-PR-Package: emacs Original-Received: via spool by 55836-submit@debbugs.gnu.org id=B55836.16645413914824 (code B ref 55836); Fri, 30 Sep 2022 12:37:02 +0000 Original-Received: (at 55836) by debbugs.gnu.org; 30 Sep 2022 12:36:31 +0000 Original-Received: from localhost ([127.0.0.1]:40701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeFFm-0001Fk-Nl for submit@debbugs.gnu.org; Fri, 30 Sep 2022 08:36:30 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:35760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeFFk-0001FX-MS for 55836@debbugs.gnu.org; Fri, 30 Sep 2022 08:36:29 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id u10so6523148wrq.2 for <55836@debbugs.gnu.org>; Fri, 30 Sep 2022 05:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:message-id:in-reply-to:subject:cc:to:date :from:from:to:cc:subject:date; bh=dbt9fOTCdVkMacAAXD/tcYNFVpD4P3RJbTqcLID3oLU=; b=lsFuxL3dR5XVYYEBIkmGIiigONZnGgLkJobo+qAuTJYUoNinfh7BYHeGru+PaiKNcY o3cQcPMW0CtSTXy6pY+LT1q7c1ru2px4w3sb935qjmCiq1kXnMTGLDjGncwopaQ0K2Uu wpD2svkE8xbTl3aLtEz0YCJVLcYZdCMedNb1qgauUXK4dQ2BcCp6rTOTSfWuXYv0Z6lr nRTRlMdJOWLW/7CmGpJFvbVKdqvqJxQFr0xwsCUCohz8HQ4vOsQqhmXRon7GphJKH8j1 zltY5v48GBdP9nAyZZVvcCzm6kQqy4nSLp0ERcWGgwny3JGsR9CfpDoz+h1WXZoLh2P+ KQsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:references:message-id:in-reply-to:subject:cc:to:date :from:x-gm-message-state:from:to:cc:subject:date; bh=dbt9fOTCdVkMacAAXD/tcYNFVpD4P3RJbTqcLID3oLU=; b=mP2mZGhbqRaoOQ6fcODuUQW8bF3WPRt6z1Loi6pvESp0/tbITrfQKM4UKWLAG4AdF9 51PCVNkLHCvodK20wbNtmbzTui6VJLW2hh6DwOSQJyp7mSWHHRj4YPezNePPWWXcAhvN 4KHim/eHSAJx9DUoTfd2Mclhck+P0bXPvn/ywiDdVhv0Uuv0d9SHXgutrq2ni8qo6SQA 12Vi/LRQZeBl3srVJh1IN3X/g4BXI33R1X7PDgzCan24nY3aUXqNGwEFcQe8h0kNOgOX nyKDXYn6xiInqoHzLyAKpjxKMYTbNNoABXaZ2kQoMgM1lXmbG3oqU8PYU8qnwX7cr91g tpPg== X-Gm-Message-State: ACrzQf15QUnSXmrWbVCh7LoOkQjoEDsYOnPNpS6AtcodCln2bkYt/gm3 3qDucWWLDAX9KOG6+4K8Cu8= X-Google-Smtp-Source: AMsMyM5txiFC3k6YOvlm0CHfFw6TjH3vr7oj+3iwt+yCEnnvq9UNM4E7oBsp8gglCJ8qA5aLNqjoJw== X-Received: by 2002:adf:e60d:0:b0:22c:d483:5ee1 with SMTP id p13-20020adfe60d000000b0022cd4835ee1mr5443862wrm.641.1664541382754; Fri, 30 Sep 2022 05:36:22 -0700 (PDT) Original-Received: from tcalanch.remote.csb ([193.118.249.171]) by smtp.gmail.com with ESMTPSA id q13-20020adf9dcd000000b00226dedf1ab7sm1877450wre.76.2022.09.30.05.36.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 05:36:21 -0700 (PDT) X-Google-Original-From: Tino Calancha In-Reply-To: <874jwr6ndk.fsf@yahoo.com> 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:243997 Archived-At: On Thu, 29 Sep 2022, Po Lu wrote: > You should simply be able to type "b gdk_wayland_window_handle_configure". I see, thank you. > Could you install debug info for GDK, put breakpoints on both > window_state_event (in pgtkterm.c) and > gdk_wayland_window_handle_configure (in gdkwindow-wayland.c)? > Please see whether the former is called after the latter, and in doing > so clears the iconified flag? This is what I see: 1. The breakpoint at gdk_wayland_window_handle_configure is never reached. I have tried with both patches discussed above, and the master branch with no success: such breakpoint is not reached. 2. I have played with the following patch that also fixes the issue in my machine: --8<-----------------------------cut here---------------start------------->8--- diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 491ba33..58456c9 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -5502,13 +5502,6 @@ window_state_event (GtkWidget *widget, if (new_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); - } if (new_state & GDK_WINDOW_STATE_STICKY) store_frame_param (f, Qsticky, Qt); --8<-----------------------------cut here---------------end--------------->8---