bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55779: 29.0.50; child frame


From: drshapeless
Subject: bug#55779: 29.0.50; child frame
Date: Sun, 05 Jun 2022 11:55:58 +0800

Po Lu <luangruo@yahoo.com> writes:

> Thanks.  I didn't quite figure that out either.
>
> Does this also fix the problem?
>
> diff --git a/src/xterm.c b/src/xterm.c
> index 2bf37e94d6..7f9d4c6ff6 100644
> --- a/src/xterm.c
> +++ b/src/xterm.c
> @@ -4349,11 +4349,16 @@ x_update_opaque_region (struct frame *f, XEvent 
> *configure)
>                    (unsigned char *) &opaque_region, 4);
>    else
>      {
> -      object_class = G_OBJECT_GET_CLASS (FRAME_GTK_OUTER_WIDGET (f));
> -      class = GTK_WIDGET_CLASS (object_class);
> +      /* This causes child frames to not update correctly for an
> +      unknown reason.  (bug#55779) */
> +      if (!FRAME_PARENT_FRAME (f))
> +     {
> +       object_class = G_OBJECT_GET_CLASS (FRAME_GTK_OUTER_WIDGET (f));
> +       class = GTK_WIDGET_CLASS (object_class);
>  
> -      if (class->style_updated)
> -     class->style_updated (FRAME_GTK_OUTER_WIDGET (f));
> +       if (class->style_updated)
> +         class->style_updated (FRAME_GTK_OUTER_WIDGET (f));
> +     }
>      }
>  #endif
>    unblock_input ();

Yes this also solves the bug. Weird.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]