From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Emacs's set-frame-size can not work well with gnome-shell? Date: Mon, 17 Feb 2020 19:21:13 +0100 Message-ID: References: <2056a194.3971.16f8d4dd4c5.Coremail.tumashu@163.com> <9bac54df-8cd3-303d-910e-07e161ff1f3e@gmx.at> <414ade05-1ae6-75c2-9af1-e1eee42799a0@yandex.ru> <44010781-43f0-3bc3-06ed-475c526dee36@gmx.at> <70813591-8c24-cb30-8ecf-0c413a51f472@gmx.at> <81215100-3476-9d2c-f535-f57fbd18fd8b@yandex.ru> <8a485c09-535a-97e6-9817-31e6d2f93adb@gmx.at> <0734f22f-9237-d46a-27d5-016444f48d70@gmx.at> <5e28c37f-95a9-a5ae-d73c-b5bb769154c0@yandex.ru> <4c0993c7-0583-8573-60c5-ab0a92121fd3@gmx.at> <4b114f01-d8d9-2c33-6312-1e2e60a5d462@yandex.ru> <127bb534-e77c-bad0-683b-92c206feeba1@yandex.ru> <2af76486-f976-eef0-683c-45b7ea6c54eb@gmx.at> <090b65ce-f90a-c959-c72b-be73d5a2eb19@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="112573"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Dmitry Gutov , tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 17 19:24:03 2020 Return-path: Envelope-to: ged-emacs-devel@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 1j3l3r-000T9v-Dc for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Feb 2020 19:24:03 +0100 Original-Received: from localhost ([::1]:50322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3l3q-0000d9-7o for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Feb 2020 13:24:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44887) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3l1H-0005qQ-Da for emacs-devel@gnu.org; Mon, 17 Feb 2020 13:21:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3l1F-0004CT-Iv for emacs-devel@gnu.org; Mon, 17 Feb 2020 13:21:23 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:39513) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3l1F-0004Bv-2J for emacs-devel@gnu.org; Mon, 17 Feb 2020 13:21:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1581963674; bh=dwOTglaXKb4PdS92e61Y/B9ceumORRe+Jz28GHyjJek=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=T1RnC/YoJnXAkjDYcXHOezrcuMax5v5zU1jPRQiAEW+TqajSJhhjA2WZfawVxBu0D NCK6sWk31WMN+atQx+eY1Lt8zVpopGwbMns63CVsbnugni0KOi5njwPbt4sXwOebhU +3xZr+xIPVZt2KnXks9XXgiDVHuxQZjAhf0vdhl0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.8]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MZTmY-1izrYd3azu-00WVEE; Mon, 17 Feb 2020 19:21:13 +0100 In-Reply-To: <090b65ce-f90a-c959-c72b-be73d5a2eb19@yandex.ru> Content-Language: en-US X-Provags-ID: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fXzyJ6UK5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.21 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244979 Archived-At: > It seems like the optimization I described is sort of already there, > at least as far as fit-frame-to-buffer is concerned. So it's better > than explicitly cycling frame visibility like I tried before. Which optimization? > When the frame does need to be resized, the flicker is there, of course. So it doesn't flicker when the frame doesn't need a resize? Maybe GTK catches that. > But with the current implementation of company-posframe, at least, it might look better than the current behavior also with a GTK2 build. Like, with the new var set to nil (default), the frame is seemingly resized in two steps (*): > > - Resize the frame. > (redisplay, apparently, but show the previous contents of the buffer) > - Update the contents of the frame. > (redisplay again, apparently) Have you tried the other way round? > The whole process is fast, but not fast enough for me to miss this transition. > > It's either a bug in company-posframe or in Emacs itself, but setting x-gtk-hide-child-frame-during-resize to t at least makes it happen in one move, at the cost of having the whole popup blink at the same time. I doubt we could collapse the ConfigureNotify and MapNotify into one. It would be worth a try though ... > (*) Tried to see the same problem with a Lucid build but couldn't. Maybe just because it resizes faster, IDK. I doubt that. martin