From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: src/nsterm.m: fix window tabbing on macOS Date: Wed, 9 Jun 2021 13:29:49 +0100 Message-ID: References: <8CCF969D-32AF-4542-8838-21DF4AA45523@yasufuku.dev> <9814156B-6B84-4CFA-9F5F-A1B05F19826F@bydasein.com> <312D53B8-0B55-40BD-8652-39848045E639@bydasein.com> <854d5f6a-3de9-f0d3-d7cd-7483d2c0758b@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20024"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 09 14:58:48 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 1lqxnC-0004tc-4r for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 14:58:46 +0200 Original-Received: from localhost ([::1]:58296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqxnA-0004Qt-3d for ged-emacs-devel@m.gmane-mx.org; Wed, 09 Jun 2021 08:58:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqxmQ-0003hW-HT for emacs-devel@gnu.org; Wed, 09 Jun 2021 08:57:58 -0400 Original-Received: from ip6-2001-8b0-3f8-8129-d5d1-5d7e-1446-d8b7.holly.idiocy.org ([2001:8b0:3f8:8129:d5d1:5d7e:1446:d8b7]:52080 helo=breton.holly.idiocy.org) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqxmK-0000om-TV for emacs-devel@gnu.org; Wed, 09 Jun 2021 08:57:54 -0400 Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 910B4202C6CDE2; Wed, 9 Jun 2021 13:29:49 +0100 (BST) Mail-Followup-To: Alan Third , martin rudalics , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <854d5f6a-3de9-f0d3-d7cd-7483d2c0758b@gmx.at> Received-SPF: none client-ip=2001:8b0:3f8:8129:d5d1:5d7e:1446:d8b7; envelope-from=alan@breton.holly.idiocy.org; helo=breton.holly.idiocy.org X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no 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:270596 Archived-At: On Wed, Jun 09, 2021 at 02:20:34PM +0200, martin rudalics wrote: > >> If you just used > >> > >> adjust_frame_size (f, -1, -1, 5, false, Qtool_bar_lines); > >> > >> in ns_set_tool_bar_lines would that change anything? > > > > It doesn't make any difference to the frame resizing, but does make > > the window display as a tiny 2x2 character block in the top left of > > the frame, so I'm not sure it's doing what you intended. > > It's not. What happens when you omit that call entirely? No change, still resizes when disabling/enabling the toolbar. Like I said before, though, as far as I can tell Emacs isn't even informed about the frame resizing until it's already done, so I don't think we can change it through Emacs's core, I think it has to be a change in the NS window or view setup. I actually suspect that the apps that don't resize when the toolbar is enabled or disabled are probably using automatic layout of their contents, which we can't do. -- Alan Third