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: Tue, 11 May 2021 11:25:27 +0200 Message-ID: <87sg2tr4u4.fsf@gnu.org> References: <69a5e928-2998-f776-fa0d-f35e6ab1e65d@gmx.at> <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> <87v97tvt7e.fsf@gnu.org> <726883d4-8d13-a3cb-30b7-a74c4b44f8ed@gmx.at> <87a6p3iv9q.fsf@gnu.org> <48753133-11a3-a21f-a1f9-4e58508079ac@gmx.at> <36f3b7b6-b81c-2e89-99c8-0a8837ef7869@gmx.at> <874kfabe7j.fsf@gnu.org> <1de34884-dfa3-92ba-8c6d-d256dcbb5d2b@gmx.at> <871raebctt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32823"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.13; emacs 28.0.50 Cc: Garjola Dindi , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 11 11:36:40 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 1lgOoi-0008PX-9V for ged-emacs-devel@m.gmane-mx.org; Tue, 11 May 2021 11:36:40 +0200 Original-Received: from localhost ([::1]:33238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgOoh-00026H-BI for ged-emacs-devel@m.gmane-mx.org; Tue, 11 May 2021 05:36:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgOnA-0007lv-MT for emacs-devel@gnu.org; Tue, 11 May 2021 05:35:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43506) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgOn9-0004DO-S6; Tue, 11 May 2021 05:35:04 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:39929) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgOn9-0004li-P1; Tue, 11 May 2021 05:35:03 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 687A527C0054; Tue, 11 May 2021 05:35:03 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 11 May 2021 05:35:03 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehtddgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepvd fhudevuedvtdevieeffeehvdffueegheejtdffhfeiveelvdfgheeujefgheffnecuffho mhgrihhnpehgihhthhhusgdrtghomhenucfkphepkeejrdduieefrdefuddrudehgeenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhn odhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhe dvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 May 2021 05:35:02 -0400 (EDT) In-reply-to: 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:269154 Archived-At: martin rudalics writes: Hi Martin, > If there were an API for that we could support it. I still don't get > a couple of things with sway: Does it support resize requests? What > happens when you make an already visible frame invisible or iconified? > Does it support size hints? I've asked on #sway-devel. Here's the transcript: --8<---------------cut here---------------start------------->8--- 11:14 I'm currently debugging some windowing issue with some emacs dev, and he has some questions regarding sway which probably someone here can comment on: 11:15 Does it support resize requests? What happens when you make an already visible frame invisible or iconified? Does it support size hints? 11:15 "it" is sway, and frame = WM window. 11:16 resize requests: yes 11:16 size hints: yes 11:16 iconified: iirc that does nothing 11:16 but not sure 11:16 all of this assumes an x11 client 11:17 emersion: Yes, right now, emacs is an x11 client (GTK3 built). 11:18 What does sway when a new emacs frame should be mapped and requests a certain size? It's at least not honored in tiling mode which is obviously fine. 11:25 https://github.com/swaywm/sway/blob/31b4b96ebf2af88630752d8518fd360ff84cf3e5/sway/desktop/xwayland.c#L584 11:28 Thanks! --8<---------------cut here---------------end--------------->8--- > ... and this is our usual annoyance. I attached a new patch which > should handle these cases as well. If there's anything else left, > please tell me. The new version handles all cases we've had so far. Thanks! If I encounter another case, I'll come back to you. But that's very unlikely, I usually have just one single frame plus the ones spawned by emacsclient -c. Bye, Tassilo