From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#24651: 25.1; frame-inherited-parameters only partially works Date: Mon, 30 Nov 2020 18:30:29 +0100 Message-ID: <79f680f6-573f-d8d4-7091-0d6ccb799d74@gmx.at> References: <87360r9hil.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7225"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 24651@debbugs.gnu.org To: Lars Ingebrigtsen , Colin Fraizer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 30 18:40:30 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kjnA5-0001nU-Ts for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 18:40:29 +0100 Original-Received: from localhost ([::1]:33770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjnA4-0001OK-LH for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 12:40:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjn0w-0003lL-Ba for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 12:31:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjn0w-0002wX-3h for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 12:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjn0v-0005pM-Vi for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 12:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Nov 2020 17:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24651 X-GNU-PR-Package: emacs Original-Received: via spool by 24651-submit@debbugs.gnu.org id=B24651.160675744722380 (code B ref 24651); Mon, 30 Nov 2020 17:31:01 +0000 Original-Received: (at 24651) by debbugs.gnu.org; 30 Nov 2020 17:30:47 +0000 Original-Received: from localhost ([127.0.0.1]:56564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjn0g-0005ot-QV for submit@debbugs.gnu.org; Mon, 30 Nov 2020 12:30:47 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:33685) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjn0f-0005og-0m for 24651@debbugs.gnu.org; Mon, 30 Nov 2020 12:30:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606757431; bh=iJnJ+5QuyD+sAhT1rXmKlC5j9xw5SrLZIkrh/3GXL+w=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Mgrh5rkFYxpUVCibr7egHKUrU5VKLPt+YEr19ov6WEnIQl5xFXSTWaUgW98z4u7h/ elWX1AkyFeBhe0v7NyGObHXUSQ8Qxe506I92nEcUaIfbG8C8tU9jq702jYxHGmyrLd Sth0kNrvzwgxcUC0TjUM5WEjFaJT6F5FnOTOQZVY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.88]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MRmjw-1kdlfg3MTa-00TC9f; Mon, 30 Nov 2020 18:30:30 +0100 In-Reply-To: <87360r9hil.fsf@gnus.org> Content-Language: en-US X-Provags-ID: V03:K1:Hqu+5WfDIonBe/NnOfOSz0zuJ/UaZyCj4b4SfQybT39nxV2E/vO CC3bRpUpt64M3FdaFTybAYpx1HR2DWfNbd+4/r4WTfHpcLmjJzYbg7BbvvvLBMweQ9m+s9V 6A/xdXNQIpGzz6xoU1IYlThZUYua+w9QWVwYSD02rjz2mqBfDelXCvGFCBMzdrI2j5Q/Sb0 wXFv9fLm26lBzBKVMJDZQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:d3XyaVPqPTQ=:1qHZpyfw6gNBoeIbDMh/Rf PSfJGz+wbU9gB2sM5pka9hJzDHCuIoMUIL0Khtd0gzb3PdjP2KBgBti+hrDhmJwXmdXYD3HWD pX/lc30dAwdj3qtNgSvTpqdcmvZgacnmatktSYBpqvfyqYAVDPZ485ty11EBzKuw9EgyHiC1O u3fv+UspyNRv2a9LBGvmvK9ywXi5BHT05Cdj8ycrSW4XMCf5jTDwfQUGOGLd365x+Ky8dUGCy b2Z6TwSutVbUxVx+yDmHt8fHm0DXpS01BwhGaQfd08e7zM80A/vJFrQWQYnPArCzMNeJPt85e f0kYtBbICudTcB3t9mNtpNu1nL9srSaxJXdKA113f3axbYBmLvP6yIkGGQDV1z1lr8mvVf59d 6qxoQr9RgHO1jVll6edZSisVf0uQLs017Am4cqs5aggOilJ46FS/nhUWc78O83PmQlgTuvxiC PEaNiamPCaw7WjDwMWl2e0WWvHUAwJ81GhKgm9uSdFG6qJobwNIqBakHMqaXk++2EqTC0vEHU NqyIM1KbdfrHPlYLmbexZISaawsweC/7R65thwsQRJckUW8NBrX+w3Hny6pOcjfWI5zBFvk94 4NQwMdr8vffQ9R7xEkPwqUsnj/yD9FS1a2noXmryelo98a5eow79SvujFwanOveTCNthSPSmF VNiqBmVbJ1gPCI8QTQ26I1gDAPs4YqWkqJqva/wC2mZ2Hh/5AwwlJra8GGETOqeZ6X79gymwi u+EQnWxGb8vYuT0gHsiCRh60ZSDzPLIByjU5t2+Tqb7HyJjwXtJi5A/vgvsteIydMWCr+bTM X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:194662 Archived-At: > So it seems like something is going wrong when doing the inherited > height parameter -- it's not initialising everything the correct way. > > Anybody got an insight here? The implementation is overly optimistic. Doing, for example, (when frame-inherited-parameters (sit-for 0.5) (dolist (param frame-inherited-parameters) (unless (assq param parameters) (let ((val (frame-parameter oldframe param))) (when val (set-frame-parameter frame param val)))))) works here. I see two ways to fix this. Add such a timeout or, more cleanly, merge the inherited parameters into 'params' _before_ calling `frame-creation-function'. As a rule, never fiddle with frame sizes or positions before the WM got back to us with the new frame. martin