Subject: bug#49959: 28.0.50; Emacs got quasi freeze

From: Masaru Nomiya <[email-masked]>
Date: Tue, 24 Aug 2021 12:45:51 +0900

Hello,

In the Message; 

  Subject    : bug#49959: 28.0.50; Emacs got quasi freeze
  Message-ID : <[email-masked]>
  Date & Time: Tue, 24 Aug 2021 10:19:36 +0900

[MN] == Masaru Nomiya <[email-masked]> has written:

MN> Hello,

MN> In the Message; 

MN>   Subject    : bug#49959: 28.0.50; Emacs got quasi freeze
MN>   Message-ID : <[email-masked]>
MN>   Date & Time: Mon, 23 Aug 2021 10:35:02 +0200

[...]
RM>  If it is a VisibilityNotify event, then maybe the attached patch will
RM>  help.

RM>  Thanks, martin
RM>  [2 VisibilityNotify.diff <text/x-patch (7bit)>]
RM>  diff --git a/src/xterm.c b/src/xterm.c
RM>  index 6c6a62adb2..6e562ce8e9 100644
RM>  --- a/src/xterm.c
RM>  +++ b/src/xterm.c
RM>  @@ -9354,7 +9354,11 @@ handle_one_xevent (struct x_display_info *dpyinfo,
RM>         f = x_top_window_to_frame (dpyinfo, event->xvisibility.window);
RM>         if (f && (event->xvisibility.state == VisibilityUnobscured
RM>   		|| event->xvisibility.state == VisibilityPartiallyObscured))
RM>  -	SET_FRAME_VISIBLE (f, 1);
RM>  +	{
RM>  +	  f->output_data.x->has_been_visible = true;
RM>  +	  SET_FRAME_GARBAGED (f);
RM>  +	  SET_FRAME_VISIBLE (f, 1);
RM>  +	}

RM>         goto OTHER;

MN> Thanks.

MN> I'll check with this pacth.

Sorry, but it's off the mark.

That is, when

Tue Aug 24 12:37:39 JST 2021
_NET_WM_STATE(ATOM) = _NET_WM_STATE_HIDDEN

appears, it doesn't start rendering (= enlightenment doesn't remove
this property).

Thanks.

---
┏━━┓彡 Masaru Nomiya             mail-to: nomiya @ galaxy.dti.ne.jp
┃＼／彡
┗━━┛ "Three young men died for Rationalization.
           Yet, Margaret Bloody Thatcher LIVES!"
                                            'Brassed Off'