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.devel Subject: Re: Proposing changes to adjust_frame_size Date: Mon, 10 May 2021 16:16:27 +0200 Message-ID: <1e89f9a8-49cf-7ec2-9030-c2d90c3e409f@gmx.at> References: <6e37a183-3ebe-93d1-7a60-a747ceea0a51@gmx.at> <20210510.003015.1163052889130174910.masm@luna.pink.masm11.me> <20210510.221830.1116279060678993295.masm@luna.pink.masm11.me> 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="19919"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Yuuki Harano Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 10 16:18:23 2021 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 1lg6jl-00053e-OD for ged-emacs-devel@m.gmane-mx.org; Mon, 10 May 2021 16:18:21 +0200 Original-Received: from localhost ([::1]:57570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lg6jk-00075V-G0 for ged-emacs-devel@m.gmane-mx.org; Mon, 10 May 2021 10:18:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lg6iB-0006Cg-IL for emacs-devel@gnu.org; Mon, 10 May 2021 10:16:43 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:57077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lg6i3-0003Ys-UO for emacs-devel@gnu.org; Mon, 10 May 2021 10:16:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620656189; bh=uGBX/02Ys0nmjLXb94OOHI6T2OzXusi19JltmvAR2PQ=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=ZLtYFKulGz6/1/NFqjOuNwU1+tPS3kSr04qiB6PCTKJqL1r+zWSJTXLV5kS/DeAkh r3zLVFromZ2eAJO7gFqi3LWAS9gVamgXfCgG/GSh5Rmm7L8UEJkOKWOI7clUIET+EF JK655ikrh9ErPF01WsKWYybPu5vIkBxQ4N8k5zMU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.102] ([213.142.96.152]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M6UZl-1lZG8y1EzZ-006uMZ; Mon, 10 May 2021 16:16:29 +0200 In-Reply-To: <20210510.221830.1116279060678993295.masm@luna.pink.masm11.me> Content-Language: en-US X-Provags-ID: V03:K1:ZUphNnexMQFJlxMe2WovVCbYUCPBZ5WIMXHVw9f1mO2FdFKJaHW 2+kKwNQmbV6hM51RhpV8DLMWNllxl1BZV6UJuaBcfwygQA5F0v5jmJc2ieBtDYd0ZoYleKP phdA50zA4MDsyiyjhXm1JqgaGBqyUw7lKoINmPS3lUJIjnZCwftP5vi4B61+dALXDhy4qYX XqYdsoKAYfhaiOcjAA25g== X-UI-Out-Filterresults: notjunk:1;V03:K0:EzGfARa+NFs=:0QFPuqnjKYt805vOxu/vlZ zGrYKGrOqmHph73pqFc0mmKG5hhxvcMb9i6JolaScXoyfLFr9FzcHDl1UOSuKUjYn1Cw/YUbr SaOXAiovo7G1b9W/Ad0C+eNIGZUCuYgHrlDvTRlO/pQU6QO7zBdzbJ/60smzGqR7CyA55m1X2 5FHLZzHyEcC+PH25eTvygDvI1NWZPY1Pf3y/54T7hppw6IiqUC1e3zHM/WgltFAd+M6O08i9F OoAyAn+E6thcIwJInTFTtX1V/7iraPelvmVvyr1TSnM96P5529ZOArdKLB9cfBCmxfJwmluMb 1GxSdLCBcwAOyP01PEzYRQKQZC9ZgrwGFRAsdhgBjipkXL8KWPScKH66ICkwIyVCBrgbey/36 rUjEkYVDFJHPHBE9mi4YlzaXXFkr6rdH64NG4hPtEH4dDrqWTB+6a9Vo0ujVaarKDUnLjmfeE YPKqb1dr0zBKp6tTT8693HZUpZVFrEiaWsbxojNsFok45yjEG7tly3/PIGZjDF6lmOh813Q4S owiPhr3xX1mcNnRbA0UX8VEo8sAwsDXoDZFD9M/QY8g0PP1Z/qpqlhR9Zy7nlI+BvmJjFcGJn btTXPtsXWoBXER/iDGyITWMCNjZvG7WbSihB1I50hntD7TttmFjv4nIga9kTcPGPm4i3S15V5 sm6CplZogjzwNA2l8po08rBbofOdVQn7SB25sX28pRUOYYBGj3XcBCPkITS/Wcw3m8ZE1w/ff jTJAVunkGONGv6TtTmMS1wzQ6pOskzxASGmNpOqqK6/N9Xd8Eca2DSY9ghZB5lPi0JMv2WxH Received-SPF: pass client-ip=212.227.17.20; envelope-from=rudalics@gmx.at; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:269118 Archived-At: > ---------------- > (setq frame (make-frame '((width . 60) (height . 20) > (left-fringe . 0) (right-fringe . 0) > (vertical-scroll-bars . nil) > (visibility . nil)))) > # > > (make-frame-visible frame) > # > > (frame-width frame) > 60 > > (frame-height frame) > 20 > ---------------- This would indicate that the toolbar lines implied resize is the culprit but this > But sometimes: > > ---------------- > (frame-width frame) > 40 > > (frame-height frame) > 5 > ---------------- is very strange. >> And how does a normal, visible pgtk frame behave when you toggle >> scroll >> bars or fringes on and off? Here it expands and shrinks. > > Shrinks and shrinks. I had this when toggling menu bar lines on Motif builds. > ---------------- > (frame-width) > 81 > > (modify-frame-parameters nil '((right-fringe . 0))) > nil > > (frame-width) > 79 > > (modify-frame-parameters nil '((right-fringe . 1))) > nil > > (frame-width) > 76 > > (modify-frame-parameters nil '((right-fringe . 0))) > nil > > (frame-width) > 74 > > (modify-frame-parameters nil '((right-fringe . 1))) > nil > > (frame-width) > 71 > ---------------- > > It is the same when I toggle vertical-scroll-bars. > > I'll debug... Please try (if those work on your system) with - frame-resize-pixelwise t initially - a pgtk build using GTK2 - a normal "non-pgtk" GTK3 build and also do initialize frame_size_history = list1 (make_fixnum (100)); and post the contents of the file displayed by (frame--size-history) (pop-to-buffer "*frame-size-history*")) martin