From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#28512: 26.0.60; undecorated frames on macOS 10.13 do not resize properly Date: Sat, 23 Sep 2017 07:31:50 -0700 Message-ID: References: <20170919213413.GA2032@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1506177134 3521 195.159.176.226 (23 Sep 2017 14:32:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 23 Sep 2017 14:32:14 +0000 (UTC) Cc: 28512@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 23 16:32:09 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 1dvlTT-0000Ce-Py for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Sep 2017 16:32:08 +0200 Original-Received: from localhost ([::1]:35139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvlTX-0008GH-OE for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Sep 2017 10:32:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dvlTR-0008Fy-BD for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 10:32:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dvlTO-0005rl-6L for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 10:32:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46014) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dvlTO-0005rg-2k for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 10:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dvlTN-0002Jn-NP for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2017 10:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Sep 2017 14:32:01 +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.15061771188869 (code B ref 28512); Sat, 23 Sep 2017 14:32:01 +0000 Original-Received: (at 28512) by debbugs.gnu.org; 23 Sep 2017 14:31:58 +0000 Original-Received: from localhost ([127.0.0.1]:54695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvlTK-0002Iw-IJ for submit@debbugs.gnu.org; Sat, 23 Sep 2017 10:31:58 -0400 Original-Received: from mail-qt0-f169.google.com ([209.85.216.169]:52506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvlTI-0002HX-Nm for 28512@debbugs.gnu.org; Sat, 23 Sep 2017 10:31:57 -0400 Original-Received: by mail-qt0-f169.google.com with SMTP id o52so3466061qtc.9 for <28512@debbugs.gnu.org>; Sat, 23 Sep 2017 07:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=pOeG+x6TDYkH1HB57rVoUefey9/rYfGIDdHT295Y7hs=; b=IfSONTH4OuQ5/PX7j7+N8BE7kO7kCDiBF8gDUDMTR4Ma1EeHgBvFfaP3Ycn+fRZpWE V/8TpQl3792/8hRckH+sacb/JnasRtbyTle+f9wc1mcR0htcIVRFChNQXSSG+GrrtMuv uKOJneOF1EpqvRL/i6uxFgh1j1cpEjJQCGlVjdI/sEl6yPmgAmPjH3B81XI9TUf/qS7E tV/D93rdi3c7Z93N8bnqvHPHWIpkxcyl8mlwU3+qj/23YVZpeuUuwi9SCDfdlrO8Y3VN jx878F+6T68k+RqWQSKYmVByc53N9494/7PFFUeNx1N2mkdV7drMlIL7vH1gJWFT77Ag 1hLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=pOeG+x6TDYkH1HB57rVoUefey9/rYfGIDdHT295Y7hs=; b=Q24N+5Fv1aWB1A0zQ38zJrwY9cQxbC4JPOEHtmwDvwL0LLHRmp5HyDaQd1ybBVP3Je /wO3PGOJlz3hBfth8Zef0NGQV/Frvk2K0FJlYdEtk7rUgZW9TeYbNB2mJeDzGPnlsdYe s4jJRHIedh+4la1/b4AvqZXnVzV0CcClIarMZRX3rTfrD6Vp+XEJK/IVyGpyE+U43CJ3 WYWyf7D566lKFAr/y1fdOz+mBYNfPtP9dffyI34sEoUzM0vLA6ggrl01HGzqTT3xO8ZL chIN0v/O8Wjy1wKK3huQOVXJCTjBmfZg1xHh1Q1141quhX2KdvBkXbGfqpBfxFGKEonS Z+9w== X-Gm-Message-State: AHPjjUhwTjH/mUuyqrJ/dIMpRQbh45PaaofYp51/yHX7nk3xKPwa1gVJ Ggm7hB3Ftniik13x20a0YO4O43mk/eaj1GppsoiyOU6C X-Google-Smtp-Source: AOwi7QB6SQkeIBirQqIOqBx2kC6baviRvlk6JbTHdsiGY/Ado5PgYUdERGl6HnJJo4U4g4PuJJRu2RvlWOP284DteIk= X-Received: by 10.200.53.168 with SMTP id k37mr3762124qtb.237.1506177111020; Sat, 23 Sep 2017 07:31:51 -0700 (PDT) Original-Received: by 10.237.32.3 with HTTP; Sat, 23 Sep 2017 07:31:50 -0700 (PDT) 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:137292 Archived-At: On Tue, Sep 19, 2017 at 2:44 PM, Aaron Jensen wrote= : > Oops, yeah, the repro was wrong, I typed that line by hand instead of cop= y/pasting. Sorry about that. On 10.12, with the correct line, do you reprod= uce it still? Or was the bad line causing the issue for you? > > If you can reproduce on 10.12, it may be a recent regression because I ha= dn=E2=80=99t ever noticed it and I=E2=80=99ve been using it on 10.12 for a = month or two now at least. Some additional information: A bug does reproduce on 10.12 for me as well, but not exactly the same. On 10.12, it does look like the screenshot I originally included, but does not have the mouse clicking issue. I'm not sure why. It only does this if on the initial frame with that repro file. The difference between the behavior on 10.12 and 10.13, however, is that on 10.13, the area outside of the scrollbar/modeline does not receive mouse events. If you click on that area of the window, the click passes through to the window behind Emacs. On 10.12, it properly receives events. This does seem to work fine on frames created anew with undecorated as long as the below patch is applied. Also, there looks like there was an issue with creating a new undecorated frame, it was not resizable but should be: --------------- diff --git a/src/nsterm.m b/src/nsterm.m index a41d6be204..b433092d24 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -7207,9 +7207,9 @@ - (instancetype) initFrameFromEmacs: (struct frame *)= f win =3D [[EmacsWindow alloc] initWithContentRect: r - styleMask: (FRAME_UNDECORATED (f) + styleMask: ((FRAME_UNDECORATED (f) ? FRAME_UNDECORATED_FLAGS - : FRAME_DECORATED_FLAGS + : FRAME_DECORATED_FLAGS) #ifdef NS_IMPL_COCOA | NSWindowStyleMaskResizable | NSWindowStyleMaskMiniaturizable ---------------- Also, I'm getting occasional build failures on my 10.12 machine on emacs-26. Any idea what would cause this: ln -f emacs bootstrap-emacs make -C ../nextstep all rm -rf /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app rm -rf /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app ../build-aux/install-sh -c -d /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app make -C ../src emacs ../build-aux/install-sh -c -d /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app mkdir: /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs.app: File exists ( cd ./Cocoa/Emacs.base ; tar cfh - . ) | \ ( cd /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emac= s.app ; umask 022; tar xf - ) ( cd ./Cocoa/Emacs.base ; tar cfh - . ) | \ ( cd /private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emac= s.app ; umask 022; tar xf - ) ./Contents/PkgInfo: Can't create 'Contents/PkgInfo' ./Contents/Resources/Credits.html: Can't create 'Contents/Resources/Credits.html' ./Contents/Resources/Emacs.icns: Can't create 'Contents/Resources/Emacs.icn= s' ./Contents/Resources/English.lproj/InfoPlist.strings: Can't create 'Contents/Resources/English.lproj/InfoPlist.strings' tar: Error exit delayed from previous errors. tar: Error exit delayed from previous errors. make[2]: *** [/private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs= .app/Contents/Info.plist] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [/private/tmp/emacs-plus-20170923-30180-1jee6x3/nextstep/Emacs= .app] Error 1 make[3]: Circular bootstrap-emacs <- temacs dependency dropped. make -C ../admin/unidata all EMACS=3D"../../src/bootstrap-emacs" make -C ../admin/charsets all make -C ../admin/unidata charscript.el make -C ../admin/unidata all EMACS=3D"../../src/bootstrap-emacs" make[4]: Nothing to be done for `charscript.el'. make -C ../admin/charsets cp51932.el make[4]: Nothing to be done for `all'. make[4]: Nothing to be done for `all'. make -C ../admin/charsets eucjp-ms.el make[4]: Nothing to be done for `cp51932.el'. make[4]: Nothing to be done for `eucjp-ms.el'. make[4]: Nothing to be done for `all'. make[1]: *** [ns-app] Error 2 make: *** [src] Error 2