From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: drshapeless via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55779: 29.0.50; child frame Date: Sun, 05 Jun 2022 11:55:58 +0800 Message-ID: <87o7z7pxv5.fsf@drshapeless.com> References: <87wndybdo1.fsf@drshapeless.com> <87leue59fd.fsf@yahoo.com> <87ee06vtds.fsf@drshapeless.com> <87ee063piv.fsf@yahoo.com> <875ylhx0cb.fsf@drshapeless.com> <878rqd44ax.fsf@yahoo.com> <87y1yd2h90.fsf@yahoo.com> <87wndwvdxs.fsf@drshapeless.com> <87leuc3a0x.fsf@yahoo.com> <87o7z8wf5j.fsf@drshapeless.com> <87ilpg0w97.fsf@yahoo.com> <87k09vdiqp.fsf@drshapeless.com> <87a6ar251e.fsf@yahoo.com> Reply-To: drshapeless Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31254"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55779@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 05 05:57:16 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 1nxhO8-0007zZ-6M for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jun 2022 05:57:16 +0200 Original-Received: from localhost ([::1]:41812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxhO6-0001Ac-GT for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jun 2022 23:57:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxhNv-0001AL-Vo for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2022 23:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37767) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxhNv-0008PX-6H for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2022 23:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nxhNu-0007CM-4U for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2022 23:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: drshapeless Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2022 03:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55779 X-GNU-PR-Package: emacs Original-Received: via spool by 55779-submit@debbugs.gnu.org id=B55779.165440140127640 (code B ref 55779); Sun, 05 Jun 2022 03:57:02 +0000 Original-Received: (at 55779) by debbugs.gnu.org; 5 Jun 2022 03:56:41 +0000 Original-Received: from localhost ([127.0.0.1]:59897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxhNZ-0007Bk-EI for submit@debbugs.gnu.org; Sat, 04 Jun 2022 23:56:41 -0400 Original-Received: from drshapeless.com ([173.199.127.49]:46972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nxhNX-0007BX-K0 for 55779@debbugs.gnu.org; Sat, 04 Jun 2022 23:56:40 -0400 Original-Received: from artix (n1164849140.netvigator.com [116.48.49.140]) by drshapeless.com (Postfix) with ESMTPSA id AE594263E; Sat, 4 Jun 2022 23:56:32 -0400 (EDT) In-Reply-To: <87a6ar251e.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:233686 Archived-At: Po Lu 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.