From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#28512: 26.0.60; undecorated frames on macOS 10.13 do not resize properly Date: Tue, 17 Oct 2017 09:58:59 +0100 Message-ID: <20171017085859.GA633@breton.holly.idiocy.org> References: <20170925101320.GA42266@breton.holly.idiocy.org> <20170925163301.GB45550@breton.holly.idiocy.org> <20171016100119.GA41757@breton.holly.idiocy.org> <20171016204631.GA44072@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1508230873 5498 195.159.176.226 (17 Oct 2017 09:01:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2017 09:01:13 +0000 (UTC) User-Agent: Mutt/1.9.0 (2017-09-02) Cc: 28512@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 17 11:00:52 2017 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 1e4Njx-0006zr-FO for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 11:00:45 +0200 Original-Received: from localhost ([::1]:37292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4Nk5-0005Ly-0f for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Oct 2017 05:00:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4NjO-0004wj-4p for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 05:00:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4NjI-0001XV-DN for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 05:00:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36202) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e4NjI-0001XQ-8s for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 05:00:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e4NjI-0001es-1W for bug-gnu-emacs@gnu.org; Tue, 17 Oct 2017 05:00:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Oct 2017 09:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28512 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28512-submit@debbugs.gnu.org id=B28512.15082307506197 (code B ref 28512); Tue, 17 Oct 2017 09:00:03 +0000 Original-Received: (at 28512) by debbugs.gnu.org; 17 Oct 2017 08:59:10 +0000 Original-Received: from localhost ([127.0.0.1]:44866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4NiQ-0001bt-Hv for submit@debbugs.gnu.org; Tue, 17 Oct 2017 04:59:10 -0400 Original-Received: from mail-wm0-f46.google.com ([74.125.82.46]:43158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e4NiO-0001bV-ED for 28512@debbugs.gnu.org; Tue, 17 Oct 2017 04:59:08 -0400 Original-Received: by mail-wm0-f46.google.com with SMTP id m72so8196761wmc.0 for <28512@debbugs.gnu.org>; Tue, 17 Oct 2017 01:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=xfEynw0eXhVH1lFkEKY7a4ET2GLkRQgrN7rG/ViJr10=; b=QyOJgV1PWzBSKdtNQWE65p7GhY4v9sBNKPbNiOGUO5XZ0tEr+taaDcy0ScxXR/EIAp IQYjVV+KLf77VyzVuZxEzRQYbWpzfmqg2cnAxWDl1uoTFHAFVJhK9oIIqAnAc8lr0mOM gIzHrdGT1/XVXBXYmwGZdL9iNdfzSGNab8guxE/IpBQgn+ipkhqy0YRKD6UgGETiIyxt 5Mt2nHuiKf5W9Vrt0LLcLaTO5bsMzzskC8Eeo4u0r0GsYJHCeJoHjdG70TFjeHq5AVMI khVM/PdRZBDOj/vZSJLNyjVVryFprSptu7Y+wG1kWEHffY54TJyHEzC365LrfYz/kDiN VrBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=xfEynw0eXhVH1lFkEKY7a4ET2GLkRQgrN7rG/ViJr10=; b=abreRMve5hvaeT7SE4roneJ+ASDh3sGK7M7eJJINVOVUn0NeIimeBdne8A01da7fHA 74hl7awdfzGoNvGrOQWDXWH6HOU1peNRNtrTI/Egy6VrZO/HkMPc5YE6KUBcs44VLarC dbRSfzkUC9Bwi4yNJfOmB5/QsN38yKJYmwVUPl27Uq1EzMIaJxlMH37T3tYkb3cfq4kn 6+uuvx3oe/G9l5qTPgJcKqsXAhkY20NBIQo1Q+Q+swdRql4Z6VT43gmGq4PMtgyb876x 5v8AU7CNgju6c5AGOlPG/4Ko8CIPYJVEuGNb7/WeLtPetGpXcK0oAjKE4a7u8O4eL5Qs Vfiw== X-Gm-Message-State: AMCzsaVOiEUlXTp6r7qgSipgpl1tXqNxzjc1Oxk0bWinUz8rPoQ1oeMq 1fYhEo3gkWrzaR9yDx5w8LE= X-Google-Smtp-Source: ABhQp+QqSGPbZuSSrJJpMLPNe7qOuY6o0EMt66QPQn0Kil8RrJB6LqApoVAtzk+noS0PQ6Vb8W6csQ== X-Received: by 10.28.145.72 with SMTP id t69mr2896492wmd.113.1508230742608; Tue, 17 Oct 2017 01:59:02 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-e8c0-7337-fd5d-f719.holly.idiocy.org. [2001:8b0:3f8:8129:e8c0:7337:fd5d:f719]) by smtp.gmail.com with ESMTPSA id h21sm6625586wrf.47.2017.10.17.01.59.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2017 01:59:01 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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:138600 Archived-At: On Mon, Oct 16, 2017 at 07:50:50PM -0700, Aaron Jensen wrote: > On October 16, 2017 at 1:46:36 PM, Alan Third > (alan@idiocy.org(mailto:alan@idiocy.org)) wrote: > > > If it doesn’t work can you change FRAME_UNDECORATED_FLAGS back to: > > > > #define FRAME_UNDECORATED_FLAGS NSWindowStyleMaskBorderless > > > > and see if you can resize the frame using lisp? > > I can resize the frame with set-frame-size when using only borderless > and it does not break the mouse events. I can’t resize with the mouse > in this case, however and adding the resizable style back puts me > right back in the broken situation. This is fine, we can live with this. When you create an undecorated frame you’ll just have to also set the frame parameter drag-internal-border to t. Resizing is a bit flickery, but it should work as it’s being done through emacs lisp. I didn’t realise that resizing through lisp worked when the resize mask was off, I thought it was completely broken. > According to George Nachman (author of iTerm2): > > > I'd say to file a radar but borderless windows are deprecated so I’d > > only expect them to get worse. I guess Apple would prefer that you > > use NSFullSizeContentViewWindowMask. Plus then you get a shadow and > > rounded corners. > > Unfortunately, it behaves the same as borderless when there’s no title > (bug included). As far as I can tell, the only way to get a resizable > borderless window is to create it as such from the beginning :( There are other things you can do, like making the title invisible and turning off the buttons. I’ve not done much experimenting with it since it doesn’t work on older macOS versions. It might be worth my while putting in the effort, though. I didn’t know that borderless windows were deprecated either. I don’t remember seeing that mentioned in the documentation. Good to know though. -- Alan Third