Subject: Re: bug#55836: 29.0.50; (iconify-frame) freezes buffer view under Wayland.

From: Po Lu <[email-masked]>
Date: Tue, 27 Sep 2022 08:25:24 +0800

Tino Calancha <[email-masked]> writes:

>> What if you use GNOME Shell?  The problem is no window state changes are
>> normally sent by GDK under Wayland, so Emacs doesn't even get to the
>> piece of code that clears FRAME_ICONIFIED_P.
>
> Under Gnome Shell both patches fix the issue in my machine.

That's really odd.  But I think I now know what's going on.

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?