From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#24579: [PATCH] borderless windows on OS X Date: Sat, 01 Oct 2016 15:41:16 +0200 Message-ID: <57EFBCFC.50005@gmx.at> References: <57EF777A.9030403@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1475329347 10663 195.159.176.226 (1 Oct 2016 13:42:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Oct 2016 13:42:27 +0000 (UTC) Cc: 24579@debbugs.gnu.org To: Jay McCarthy Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 01 15:42:23 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqKYS-0001J3-Vw for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 15:42:17 +0200 Original-Received: from localhost ([::1]:55896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqKYR-0007nW-8N for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Oct 2016 09:42:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqKYH-0007m1-9P for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 09:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqKYE-0002Tu-5D for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 09:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqKYE-0002To-1C for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 09:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bqKYD-0002zd-P1 for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2016 09:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Oct 2016 13:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24579 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24579-submit@debbugs.gnu.org id=B24579.147532928911467 (code B ref 24579); Sat, 01 Oct 2016 13:42:01 +0000 Original-Received: (at 24579) by debbugs.gnu.org; 1 Oct 2016 13:41:29 +0000 Original-Received: from localhost ([127.0.0.1]:40429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqKXh-0002yr-6T for submit@debbugs.gnu.org; Sat, 01 Oct 2016 09:41:29 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:49188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqKXf-0002yK-3O for 24579@debbugs.gnu.org; Sat, 01 Oct 2016 09:41:27 -0400 Original-Received: from [192.168.1.100] ([212.95.7.35]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Mh6lB-1bcuIL2e7F-00MNTk; Sat, 01 Oct 2016 15:41:20 +0200 In-Reply-To: X-Provags-ID: V03:K0:tlrml7SC5p+BIuKappvooT2QGqAtmM9rk+Zj2CZKF5qVxgG24kb QvgWIFtDPHPSmodnrUiwF0Ie3sHH3xX6WBpFDFrISjhdRZJ9SP32kkUyD1hTjctRC1/msz3 wmnehDgXgL/hbzzkz0MRfPMc2HxMoR37I8OxIkJFoP84Hc6rLpcpaEKn2kjq+SwcP/6GyzO ZAY5kEBaQqbK9uBrytYaA== X-UI-Out-Filterresults: notjunk:1;V01:K0:pzF7cHmVkFU=:N+9PWreWDzy2hbezo3Xtun EZ5wr2AMomSF7Qi0IRshah5GVaLigxLrGsHzkYh394A5XVirIk4aQ53G9qn/znEPEO10/zqBA W/lxcYg1t+I8agGEvT2rNZ+hk0Hal5CScww5cUrBNz4m6KJsOEotPPeUHJp3rOEntt/iuPVsx zEb3ijFA8DTAudWAyBoOLuSRsfO4RRrvIky8Ixg6VYvU+wTHo/r2wFv5BWcsbRFNvXPjPQdzN A0YNxZP+3S7mpGLZsGwfaTKO108m/WpcwXn+GyuSdZ26a9YA/bnV5wqSDllHT5qREX0VNFjKe BDABeszRJl51PhBDQyytxZzUfvCoEKG6DQorOC6zn0l3jzzvbhAHVoQUrYLE8OqeEuw78WNme MbuLaH7m8D61d5GyNddEFpUUns0r79Vc1j+dmOZ98Mp7N3dN7ex9X2qEubUxErLwvoDzhsTV2 6WcTu74XLZtPGdpJfLLr+HWn/FF0YJ6/USla+IpJEuUDhPTq5eAhm9/ZpP/Qx+mpqJcgE+tKt 7wrOytQ66ybmz5hMsaLwYlw0aOU8PBWbszX2Vy59qJCjM6v64JyRVR2AAoyp9HQUGGGlObAjX tio/eS6QSBN795/hMHeZGNjlBz9qHlGjePF4zU2RRKezgNEFxDHvPfoN/KGEO8VkIkek9m8PP zR3H8ocFF1Ro3EkZKGcbbeL66KT6R9W4C8qUQzsS8c3sJ0XW2wLtwNZiCSskolmc1jhLtgK1h yA/dKgvviV20TSuDnlz3rgRG41b7ZAbSyjKp+s8/RfonOmICiI+I1l51h5ltchxn9y1ngDXu X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123848 Archived-At: >> (1) Is there a way to mix behaviors in one and the same session - tha= t >> is have at the same time a window with a title bar and one without? >> It's possible under X and Windows as can be seen with tooltip frames.= > > Yes, because as implemented the variable only affects new frames, so > you can switch it on and off as you create frames to get both styles. > Thus, it could be a frame parameter as well. I didn't do it this way > because I personally want it to be a global setting and because I > didn't see the existing window creation code looking at the frame > parameter alist and I didn't look around the file much to get a bigger= > picture of how it works. So once installed, binding your variable around =E2=80=98make-frame=E2=80= =99 calls should do the trick, I presume. >> (2) Is there an option to draw borders and, if so, borders of differe= nt >> width on a borderless frame? Latter are available via X but not on >> Windows. > > Yes, I believe that the > > setContentBorderThickness:forEdge: > > function on the win object would let you do that, but I haven't test > that. I know that iTerm2's title-less option gives the ability to add > a border, but I worry it is implement with a custom renderer. > > https://developer.apple.com/reference/appkit/nswindow/1419541-setconte= ntborderthickness?language=3Dobjc > In my experience, completely border-less frames are disorienting unless they completely fill the display. >> (3) IIUC setting your option does not toggle titles/borders on existi= ng >> frames. Would it be possible to do so? We could do that on Windows = but >> it seems impossible with GNU/Linux window managers. > > It is possible to do that with [win setStyleMask: > NSBorderlessWindowMask], so it would be conceivable to add some > functions that would flip that setting on real frames. Although, I > don't see a way to go from an Emacs frame structure to the window > object. So, this seems like it would be a big patch (because you'd > want to do it in as cross-platform a way as possible) It wouldn't be done anyway because it would fail on GNU/Linux. > and different > than this one, so I hope the current patch is judged independently. I cannot test this because I don't use OS X. So anyone who is able to judge this, please disregard my questions and the corresponding answers. >> Thanks again, martin > > FWIW, I am not an OS X developer, so I don't know all the ins-and-outs= of this. > > My preference would be for this patch to go in if someone isn't going > to immediately do the frame parameter thing, because I don't have the > bandwidth to do it, I don't think. No need for the frame parameter thing. It's more distracting than doing any good. Thanks for answering, martin