From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko 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 21:04:15 +0800 Message-ID: <875zig1kxc.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="53435"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38497@debbugs.gnu.org To: mituharu@math.s.chiba-u.ac.jp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 16 14:07:15 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 1igq5e-000Def-87 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Dec 2019 14:07:15 +0100 Original-Received: from localhost ([::1]:53424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igq5d-0006Bs-4c for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Dec 2019 08:07:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39289) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igq5X-0006BG-D0 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 08:07:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igq5W-0007RK-EN for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 08:07:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60316) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1igq5W-0007Qf-BE for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 08:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1igq5W-0004Oe-6N for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 08:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2019 13:07: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.157650158616860 (code B ref 38497); Mon, 16 Dec 2019 13:07:02 +0000 Original-Received: (at 38497) by debbugs.gnu.org; 16 Dec 2019 13:06:26 +0000 Original-Received: from localhost ([127.0.0.1]:38056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igq4w-0004Nr-7X for submit@debbugs.gnu.org; Mon, 16 Dec 2019 08:06:26 -0500 Original-Received: from mail-yw1-f68.google.com ([209.85.161.68]:38136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igq4s-0004Nd-Jm for 38497@debbugs.gnu.org; Mon, 16 Dec 2019 08:06:24 -0500 Original-Received: by mail-yw1-f68.google.com with SMTP id 10so2418118ywv.5 for <38497@debbugs.gnu.org>; Mon, 16 Dec 2019 05:06:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=C5dog97q8XOW21WiRF+PFWf3Gc0fjIzFGgZ8AcHazSg=; b=mjfWA6sW5Cbc/dWF2jHA08H5VCjQt4GUm24nwUqnJGKOJMjJnMhME9d95p7x3AioaM pQtE9Fe0n77Y2eF5NnIOeFHs1BUNuR/LL9YGYoeYsFtHl/tPXhoAFcpbmeQgFF9ZD7x3 uMfZqhnFG6Ke8sZtrwygpvLEwWi2znfhT6fFquxU2OuEFqVJbzPS9A/FhGa2irfA9ZyD 5+kh1Ho3hxdqZmBdX1Ffj3R5w+EbVw+5hpvz30P4UECrDblmEmmBuI/lCmf/lf7tHOP4 wVsC7S/EPw5iOV93bQoEWJQJexRKf795Qy/ZmpjJw6aBatds45HpdSK+SB+Y4kJ/d2Md cOSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=C5dog97q8XOW21WiRF+PFWf3Gc0fjIzFGgZ8AcHazSg=; b=PN5Q7NNHqedBBVK/lOS+bfxk1TqkYkpgvqGLEL1pgFqFkbDHQEUg5u/TEpoGTDFrei JWXH30P/djXD9uLPmCt7RadP1avB/UDw3p4e3Ssfo7E1+VzNWXyWoNrSLbq8OtL1M7sd YAcDrhgpWRZvKpb8SyWwQ1TlKqMKGnEcpuzNK/BmsVnn1F6I+Y3L7nttnWhCVoz64wNz Fp0UpfrTiA0NBpVwsmEqj7Akz9+X8EmoaOfkV9j1QFVjw+O4VQw15yGS5pq5UWcwNQo4 ZAYjLOw7CT5ZaS5hsRlKm5yYjv7i+sn4He5eP8sSTF7BllLElHYAe9nM0CgoUoWl62Q/ +rEA== X-Gm-Message-State: APjAAAWGeNuMCPt4c3Qya8sMKjGfrt3ZtUaeAn5yg5wNZVpZZP2JjgZb OhCgQxUP84roGUdSya0CFH8= X-Google-Smtp-Source: APXvYqy5L3dv6byNG56jQZvtLhsnigi+WT1xUowMjcLrq3xhVEYIJgmGPf+Ygahayb1MkPpvlKhDNg== X-Received: by 2002:a81:408:: with SMTP id 8mr17950533ywe.88.1576501577005; Mon, 16 Dec 2019 05:06:17 -0800 (PST) Original-Received: from localhost ([5.226.137.4]) by smtp.gmail.com with ESMTPSA id m30sm6250129ywh.12.2019.12.16.05.06.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2019 05:06:16 -0800 (PST) In-Reply-To: <5d6b8b8137b6e29b852e7d14b2235522.squirrel@weber.math.s.chiba-u.ac.jp> 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:173433 Archived-At: > Could you try the patch below? Redrawing started working with this patch. Thank you! Best regards, Ihor mituharu@math.s.chiba-u.ac.jp writes: >>> 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 > >