From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#38497: 27.0.50; Frame is not rendered when frame-resize-pixelwise it 't Date: Tue, 17 Dec 2019 15:50:37 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <87wobbjlm0.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <2975a018-4c5c-4da4-f236-8eb4338a9829@gmx.at> <878sngvhaf.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <13a1e840-7ca3-fb70-e773-de12089bd97e@gmx.at> <8736domoza.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <94dc09f8-6ef4-f493-db7b-52b0d218f715@gmx.at> <87zhfwkwb5.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <647006dc-42e1-a242-4fda-2f129943fc98@gmx.at> <87tv63kzzc.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <87eex7civ7.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <874ky1669n.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <8f3a661e-b61c-1efb-6c30-b0aad00a8305@gmx.at> <87mubtngt7.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <5d6b8b8137b6e29b852e7d14b2235522.squirrel@weber.math.s.chiba-u.ac.jp> <875zig1kxc.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <871rt323b3.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="195672"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: 38497@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 17 07:52:53 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ih6iz-000ojT-FD for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Dec 2019 07:52:53 +0100 Original-Received: from localhost ([::1]:36960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ih6iy-0000vk-8i for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Dec 2019 01:52:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55216) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ih6hD-0006uc-Km for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2019 01:51:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ih6hC-0000xc-Iw for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2019 01:51:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34668) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ih6hC-0000xW-Fu for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2019 01:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ih6hC-0005OL-FV for bug-gnu-emacs@gnu.org; Tue, 17 Dec 2019 01:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Dec 2019 06:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38497 X-GNU-PR-Package: emacs Original-Received: via spool by 38497-submit@debbugs.gnu.org id=B38497.157656544120699 (code B ref 38497); Tue, 17 Dec 2019 06:51:02 +0000 Original-Received: (at 38497) by debbugs.gnu.org; 17 Dec 2019 06:50:41 +0000 Original-Received: from localhost ([127.0.0.1]:40641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ih6gr-0005Nn-Im for submit@debbugs.gnu.org; Tue, 17 Dec 2019 01:50:41 -0500 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:58558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ih6gp-0005Ne-QD for 38497@debbugs.gnu.org; Tue, 17 Dec 2019 01:50:40 -0500 Original-Received: from mathent.math.s.chiba-u.ac.jp (mathent [192.168.32.5]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id D3F5BF08D5; Tue, 17 Dec 2019 15:50:37 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) In-Reply-To: <871rt323b3.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173470 Archived-At: On Tue, 17 Dec 2019 09:39:28 +0900, Ihor Radchenko wrote: > > >> Could you try the patch below? > > Even though redrawing started working with the patch following my > previous recipe, I observe another redrawing issue with this patch. I > haven't tracked the exact recipe yet, but it seems to occur when emacs > frame is created in floating layout (maybe because it is not resized > after creation in this case, unlike tiling layout). Does the patch below work? (I'm no X11 expert, so just shooting at random.) YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp diff --git a/src/xterm.c b/src/xterm.c index 55e5cb76f2..590b4bda97 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -8934,6 +8934,10 @@ handle_one_xevent (struct x_display_info *dpyinfo, if (f) x_cr_update_surface_desired_size (f, configureEvent.xconfigure.width, configureEvent.xconfigure.height); + else if (any && configureEvent.xconfigure.window == FRAME_X_WINDOW (any)) + x_cr_update_surface_desired_size (any, + configureEvent.xconfigure.width, + configureEvent.xconfigure.height); #endif #ifdef USE_GTK if (!f