From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: mituharu@math.s.chiba-u.ac.jp Newsgroups: gmane.emacs.bugs Subject: bug#38497: 27.0.50; Frame is not rendered when frame-resize-pixelwise it 't Date: Mon, 16 Dec 2019 19:53:37 +0900 Message-ID: <5d6b8b8137b6e29b852e7d14b2235522.squirrel@weber.math.s.chiba-u.ac.jp> 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> Mime-Version: 1.0 Content-Type: text/plain;charset=iso-2022-jp Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="26770"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: SquirrelMail/1.4.22-5.el6 Cc: 38497@debbugs.gnu.org To: "Ihor Radchenko" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 16 11:54:12 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 1igo0x-0006nX-TE for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Dec 2019 11:54:12 +0100 Original-Received: from localhost ([::1]:50690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igo0w-0001BP-Jp for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Dec 2019 05:54:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45962) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igo0p-00018W-8s for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 05:54:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igo0o-0007VD-71 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 05:54:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igo0o-0007V8-3n for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 05:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1igo0o-00076O-2Z for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 05:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: mituharu@math.s.chiba-u.ac.jp Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2019 10:54: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.157649362427273 (code B ref 38497); Mon, 16 Dec 2019 10:54:02 +0000 Original-Received: (at 38497) by debbugs.gnu.org; 16 Dec 2019 10:53:44 +0000 Original-Received: from localhost ([127.0.0.1]:37981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igo0V-00075p-TP for submit@debbugs.gnu.org; Mon, 16 Dec 2019 05:53:44 -0500 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:59182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igo0T-00075e-MC for 38497@debbugs.gnu.org; Mon, 16 Dec 2019 05:53:42 -0500 Original-Received: from weber.math.s.chiba-u.ac.jp (weber [192.168.32.4]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id B63DAF08D5; Mon, 16 Dec 2019 19:53:37 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) Original-Received: from 118.19.226.219 (SquirrelMail authenticated user mituharu) by weber.math.s.chiba-u.ac.jp with HTTP; Mon, 16 Dec 2019 19:53:37 +0900 In-Reply-To: <87mubtngt7.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> X-Priority: 3 (Normal) Importance: Normal 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:173430 Archived-At: >> With 'frame-resize-pixelwise' non-nil? > > No, frame-resize-pixelwise had its default value (nil). > > To avoid confusion, let me recall what I did to reproduce the redrawing > issue: > > 1. Compile emacs with xft cairo and lucid > 2. emacs -Q (frame-resize-pixelwise is nil by default) > 3. Maximise emacs frame (without this, there is an artefact in the title > bar, but emacs frame itself is redrawing) > 4. M-x menu-bar-mode Could you try the patch below? YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp diff --git a/src/xterm.c b/src/xterm.c index 55e5cb76f2..3d6f59c48c 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -8931,8 +8931,9 @@ handle_one_xevent (struct x_display_info *dpyinfo, font_drop_xrender_surfaces (f); unblock_input (); #if defined USE_CAIRO && !defined USE_GTK - if (f) - x_cr_update_surface_desired_size (f, configureEvent.xconfigure.width, + 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