From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Proposing changes to adjust_frame_size Date: Sat, 08 May 2021 22:32:41 +0200 Message-ID: <87v97tvt7e.fsf@gnu.org> References: <69a5e928-2998-f776-fa0d-f35e6ab1e65d@gmx.at> <20210505.194756.2198057137743556501.masm@luna.pink.masm11.me> <20210505.230733.1330791046879877132.masm@luna.pink.masm11.me> <87a6p9knr9.fsf@gnu.org> <9712b3f0-c442-61fc-93a6-773ffcde1c2e@gmx.at> <87y2cswam6.fsf@gnu.org> <1b11ac72-6687-f2d4-1d9f-0619d6d2462c@gmx.at> <87v97ww8h4.fsf@gnu.org> <87eaa667-b3cd-0274-669c-3cb4e0076ce0@gmx.at> <87sg30vy7w.fsf@gnu.org> <87pmy3x620.fsf@gnu.org> <52a5361a-451e-7167-edfd-09066dfdcc3e@gmx.at> <875yzt907k.fsf@gnu.org> <0633b8ac-de8e-b57a-f3f4-804c5efb009a@gmx.at> <874kfdtj5l.fsf@gnu.org> <37f3ce19-d858-111e-a5aa-06c24803e17b@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8083"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.13; emacs 28.0.50 Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 08 22:58:53 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 1lfU2G-0001zo-MO for ged-emacs-devel@m.gmane-mx.org; Sat, 08 May 2021 22:58:52 +0200 Original-Received: from localhost ([::1]:46612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfU2F-0006TC-Pc for ged-emacs-devel@m.gmane-mx.org; Sat, 08 May 2021 16:58:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfU1i-0005nZ-UW for emacs-devel@gnu.org; Sat, 08 May 2021 16:58:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45336) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfU1i-0000ql-37; Sat, 08 May 2021 16:58:18 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:40477) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfU1h-0005c8-VK; Sat, 08 May 2021 16:58:18 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailauth.nyi.internal (Postfix) with ESMTP id B361427C0054; Sat, 8 May 2021 16:58:17 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sat, 08 May 2021 16:58:17 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeggedgudehlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe evveeikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucfk phepkeejrdduieefrdefuddrudehgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgr lhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgse hfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 8 May 2021 16:58:16 -0400 (EDT) In-reply-to: <37f3ce19-d858-111e-a5aa-06c24803e17b@gmx.at> 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:269067 Archived-At: >> ConfigureNotify, PS=672x756, XS=672x756, DS=672x756 >> xg_frame_resized, unchanged, PS=672x756, XS=672x756 >> ConfigureNotify, PS=672x756, XS=789x845, DS=672x756 > > But thhis last ConfigureNotify event is not explicable to me, values > like 789x845 are unprecedented so far. Does your WM deliberately > resize the frame? Yes, pretty much like Emacs splits windows into two balanced halves. I have a 1600 pixel wide screen, 3 pixels gap between WM windows, and 3 pixel window borders. That makes 1579 pixels width for actual WM windows, divided by two (I've had a terminal at the left and emacs at the right), makes 789.5 pixels per window. >> xg_frame_resized, changed, PS=672x756, XS=789x845 >> change_frame_size_1, delayed, PS=672x756, XS=789x845, DS=672x756 >> change_frame_size (5), TS=640x756~>757x845, TC=80x36~>94x40, NS=672x756~>789x845, IS=672x756~>789x845, MS=16x42 IH IV >> tool-bar-lines (2), MS=80x105 IH IV >> ConfigureNotify, PS=789x845, XS=789x804 >> xg_frame_resized, changed, PS=789x845, XS=789x804 > > Here the native height shrinks from 845 to 804 which should be the > tool bar, now incorporated. > >> change_frame_size_1, delayed, PS=789x845, XS=789x804 >> change_frame_size (5), TS=757x845~>757x804, TC=94x40~>94x38, NS=789x845~>789x804, IS=789x845~>789x804, MS=16x42 IH IV > > Can you please do the same but with the two instances that cause the > bad behavior removed? Sure. --8<---------------cut here---------------start------------->8--- Frame size history of # x_create_frame_1 (5), TS=80x25~>640x525, NS=80x25~>656x525, IS=80x25~>656x525, MS=16x42 IH IV gui_figure_window_size (5), TS=640x525~>640x756, TC=80x25~>80x36, NS=656x525~>656x756, IS=656x525~>656x756, MS=16x42 IH IV scroll-bar-width (3), NS=656x756~>672x756, IS=656x756~>672x756, MS=80x105 scroll-bar-height (3), MS=80x105 menu-bar-lines (2), MS=80x105 x_create_frame_2 (0), MS=80x105 xg_frame_set_char_size, invisible, PS=672x756, XS=672x756, DS=672x756 xg_frame_set_char_size (5), MS=16x42 IH IV MapNotify, not hidden & not iconified, PS=672x756, DS=672x756 ConfigureNotify, PS=672x756, XS=672x756, DS=672x756 xg_frame_resized, unchanged, PS=672x756, XS=672x756 ConfigureNotify, PS=672x756, XS=789x845, DS=672x756 xg_frame_resized, changed, PS=672x756, XS=789x845 change_frame_size_1, delayed, PS=672x756, XS=789x845, DS=672x756 change_frame_size (5), TS=640x756~>757x845, TC=80x36~>94x40, NS=672x756~>789x845, IS=672x756~>789x845, MS=16x42 IH IV tool-bar-lines (2), MS=80x105 IH IV ConfigureNotify, PS=789x845, XS=789x804 xg_frame_resized, changed, PS=789x845, XS=789x804 change_frame_size_1, delayed, PS=789x845, XS=789x804 change_frame_size (5), TS=757x845~>757x804, TC=94x40~>94x38, NS=789x845~>789x804, IS=789x845~>789x804, MS=16x42 IH IV --8<---------------cut here---------------end--------------->8--- > And can you try to run a build with the bad behavior and a "floating" > frame? Yes. --8<---------------cut here---------------start------------->8--- Frame size history of # x_create_frame_1 (5), TS=80x25~>640x525, NS=80x25~>656x525, IS=80x25~>656x525, MS=16x42 IH IV gui_figure_window_size (5), TS=640x525~>640x756, TC=80x25~>80x36, NS=656x525~>656x756, IS=656x525~>656x756, MS=16x42 IH IV scroll-bar-width (3), NS=656x756~>672x756, IS=656x756~>672x756, MS=80x105 scroll-bar-height (3), MS=80x105 menu-bar-lines (2), MS=80x105 x_create_frame_2 (0), MS=80x105 xg_frame_set_char_size, invisible, PS=672x756, XS=672x756, DS=672x756 xg_frame_set_char_size (5), MS=16x42 IH IV MapNotify, not hidden & not iconified, PS=672x756, DS=672x756 xg_frame_set_char_size, visible, PS=672x756, XS=672x756, DS=672x756 ConfigureNotify, PS=672x756, XS=672x756, DS=672x756 xg_frame_resized, unchanged, PS=672x756, XS=672x756 tool-bar-lines (2), MS=80x105 xg_frame_set_char_size, visible, PS=672x756, XS=672x756, DS=672x756 ConfigureNotify, PS=672x756, XS=672x756, DS=672x756 xg_frame_resized, unchanged, PS=672x756, XS=672x756 set_window_configuration (4), MS=80x105 IH IV --8<---------------cut here---------------end--------------->8--- Bye, Tassilo