From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Emacs's set-frame-size can not work well with gnome-shell? Date: Sun, 19 Jan 2020 05:45:44 +0300 Message-ID: References: <2056a194.3971.16f8d4dd4c5.Coremail.tumashu@163.com> <0c6ffbc3-f2a0-9658-c23d-f2838e307163@yandex.ru> <67eb5852-2047-1e74-1c83-fb8f1767a772@gmx.at> <9157f42c-ae6b-9537-4b44-08672cf60884@gmx.at> <4fc23d82-7a6a-6011-698a-b4f9d7eb6a53@yandex.ru> <5597826b-98b3-179d-ba9a-2deb314cba44@gmx.at> <2d112f1b-ea8e-ac49-1dac-9218db32f6fc@yandex.ru> <44dfe3ee-5c08-9a60-a642-8411c8e22921@yandex.ru> <35329f93-d7a9-e845-ddb4-9c4edec5fb43@yandex.ru> <53c7798d-3022-d4bd-af56-ea4a5181a887@gmx.at> <15405719-d58d-44db-f1df-ad3bb272b2fc@yandex.ru> <55a1b592-c980-7c6b-4c82-fcbfd7e97585@yandex.ru> <8401253c-946d-c57c-ca35-6a607d0f7f9a@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="130536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: "emacs-devel@gnu.org" To: martin rudalics , tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 19 03:46:25 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 1it0bY-000XvQ-VN for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jan 2020 03:46:24 +0100 Original-Received: from localhost ([::1]:47010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1it0bY-0003jQ-1L for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Jan 2020 21:46:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54657) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1it0b0-0002yC-Ke for emacs-devel@gnu.org; Sat, 18 Jan 2020 21:45:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1it0az-0001Bf-LL for emacs-devel@gnu.org; Sat, 18 Jan 2020 21:45:50 -0500 Original-Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:44292) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1it0az-00019p-EJ for emacs-devel@gnu.org; Sat, 18 Jan 2020 21:45:49 -0500 Original-Received: by mail-lj1-x22b.google.com with SMTP id q8so6577566ljj.11 for ; Sat, 18 Jan 2020 18:45:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=F0w/f4pbRz+/2FSXrlQsX1ex0olNAjpYQPQ4EUKR6Bk=; b=HhVsRsySyHSHXat9CY22ktOxC5lgASj8Rm0YDEheYJt2N9+K9bTYX9Hsdy3Ge9pn3w rhe9iM9fox7fn4iyUf6Q7xAsSc2eX4iBn3IxOVimyafSEbNiRhtV3mVtxjbCWLrzezqp Fvhm63cTZUGt0v1g/ClwB6RDZ7b1GKwpttk+vQ4VWkxvcJaNf9/xWh66D5mwP1VjplI9 NHyNh/1nnYTGn3lQZIGnlm5BIJmG4pgyiUTiqyBFN4XHmo3TfITDMOl8f0LxZpHFW4Za BeEcxod0N9Npw5t55RSE8pYUoaoa5sg/4eUxix8s3sPsrgF7qhbKwkq0ZktlQ3oTINO8 gc0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=F0w/f4pbRz+/2FSXrlQsX1ex0olNAjpYQPQ4EUKR6Bk=; b=s32l66xUVWrAm+JmeNQdkoMP4WdufApPpzuKwErCibKUdIYH0gzBv9z+vyqletA5Rn C5Ata6e9PPXabxy5TTLYzC+kaONebduChqzpyJdbO+sZDZS02nCsZju1OBq+ejgLbfyc 1nuVGv0B0Pm8YNhjrha7+e/AqtkGtjyzKPNWWjQcCwmitair/djMUBuI41dZZOGvsEhj JrLdD2OZ4NxBHAbYi62JV6b8075ZltPfBjxBAVDRqYgXmc7ncTVfj5188mldZAPlSgoN fh74eSLMVwGrxLFx8+lMiGP1e0PBEqftWjKnshJvROUi0gT49N1lmLkfJMMeuZWVZgO8 7wJA== X-Gm-Message-State: APjAAAX2sBl3lYeAmyrbAIm2vkGlw4maM6Eje5CSn/xJDvaFHPBjXBaK /Eb6Xkg/1M7OKC0QHbjo1YtvaNzVg2E= X-Google-Smtp-Source: APXvYqxAy87g4F419/2Xe8g0SuESDaRmSkCdXsXE7Erify3g/W5GJ8/7tvLlZ0JizUIk2bFqLdtq0A== X-Received: by 2002:a2e:8804:: with SMTP id x4mr10202524ljh.187.1579401946271; Sat, 18 Jan 2020 18:45:46 -0800 (PST) Original-Received: from [192.168.1.142] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id f16sm14514437ljn.17.2020.01.18.18.45.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jan 2020 18:45:45 -0800 (PST) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::22b 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:244360 Archived-At: On 18.01.2020 16:48, martin rudalics wrote: > > Changing 'resize-test' in the original scenario to > > > >    (defun resize-test (frame) > >      (make-frame-invisible frame) > >      (set-frame-height frame 20) > >      (make-frame-visible frame)) > > > > makes it both work and execute much faster: around 1ms for one > iteration. > > This at least seems to prove that the resize bug is not on our side. Maybe. But it might also mean that it's possible to provide some hint to the window manager that resizing is indeed allowed. > > If it's at all possible, I was also looking for a solution that would > minimize flickering. Any ideas? > > The above doesn't flicker here, or at least I can't notice any flicker > here. Do you have a compositing window manager (on your GNU/Linux system)? It doesn't flicker always, but like 3 out of 4 times is does. And running resize-test in a loop always shows 1-2 flickers, at least. > You could try to play around with 'x-wait-for-event-timeout'. You mean to bind it to a larger value around the body of resize-test? I tried 1, as well as 10. No change.