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: Tue, 17 Dec 2019 08:39:28 +0800 Message-ID: <871rt323b3.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> <875zig1kxc.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="59455"; 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 Tue Dec 17 01:42: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 1ih0wF-000FNg-QS for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Dec 2019 01:42:11 +0100 Original-Received: from localhost ([::1]:33804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ih0wE-0006eP-0r for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Dec 2019 19:42:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45243) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ih0w7-0006e5-Kr for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 19:42:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ih0w6-0002J9-L1 for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 19:42:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34575) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ih0w5-0002If-Qx for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 19:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ih0w5-0003kv-Nb for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2019 19:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Dec 2019 00:42:01 +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.157654329514405 (code B ref 38497); Tue, 17 Dec 2019 00:42:01 +0000 Original-Received: (at 38497) by debbugs.gnu.org; 17 Dec 2019 00:41:35 +0000 Original-Received: from localhost ([127.0.0.1]:40548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ih0ve-0003kH-Ti for submit@debbugs.gnu.org; Mon, 16 Dec 2019 19:41:35 -0500 Original-Received: from mail-wm1-f66.google.com ([209.85.128.66]:37950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ih0vc-0003k4-UN for 38497@debbugs.gnu.org; Mon, 16 Dec 2019 19:41:33 -0500 Original-Received: by mail-wm1-f66.google.com with SMTP id u2so1200769wmc.3 for <38497@debbugs.gnu.org>; Mon, 16 Dec 2019 16:41:32 -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=0UMJP2FL1935VFn8QUOC2L8uDTYbh+0bh0dfC7jgmys=; b=XAPeZI1vLCeD5gJ5FnE+wlOwS4bQgFCV4j7wfEHbhA+4fKfEQPgt2DEtx6maMvuRby 5WCExn53nyvaIRAoFOyvbpdKsQKifDNnaa96u2WfLp4FIzMf+k9+njLYLL8gFPJaorow w3NSiqRbY0nuY56dQKc/JGG+KStRSliTsYQOHSuMwTrq/nuVmp8Is7+bIP5+bwf01LKH pvrc1edDFPjTrrEagqDsciUWBOliP8EVW5gi0K9UquvIr7z4WhUiKT9CdZ9ly2GYFpYl jd3pvBL3s1FAROvDR3sRSL2Sh8TZxq73Cqeg1wRxh/2jaVcoujTaTiI2vDHNIOfOAC4G Ehlw== 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=0UMJP2FL1935VFn8QUOC2L8uDTYbh+0bh0dfC7jgmys=; b=E/Q57XpY0z6Zbzu/z9sYwCKXejSo4WAe7QJ9rYV8zPNB4uyx+jFae9EZ5rCGu0pBei OT1qswCMynKL5tur4kHfA1CF6VlAW517mP6TbTAR781pvgIL1plX640mAz4MfhxXFu4c SzR/kLfHuK3E0v1eU8tYgNLmb363uBhTtzYwuq4w9YZq+7peLGcESPFUNrRn2ibJujaS b7KLRG/fV0lGwJmNwVDwhpG3NoxYoMg+ubu+l/jwegMePb/3Rt5XjaHNlaFYjWbC64Dd 543Lw/zlXoNDqtVbTMJ1OmL/WW6NikCDo9Vo4AshNysVgfTd4NJL/510aeQlTVBiNCBE SssQ== X-Gm-Message-State: APjAAAWhHP7rur0itafTG5yjh0xw+m9i1auf1jhFv7XEzobeIyckMnpT Y0VEeJLUoz7A7fdnxyqPERo= X-Google-Smtp-Source: APXvYqxnJsdDHbS2gJeuBq6i7q1kScIA7vQ/6rKxKDq319QkL4FofT7emeYHiX7qk31Axpq8/qrNpw== X-Received: by 2002:a1c:b456:: with SMTP id d83mr1955003wmf.172.1576543287052; Mon, 16 Dec 2019 16:41:27 -0800 (PST) Original-Received: from localhost ([5.226.137.4]) by smtp.gmail.com with ESMTPSA id p17sm1141252wmk.30.2019.12.16.16.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2019 16:41:25 -0800 (PST) In-Reply-To: <875zig1kxc.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:173463 Archived-At: >> 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). Ihor Radchenko writes: >> 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 >> >> >