Subject: bug#36672: closed (Re: bug#36672: 27.0.50; NS build: Creating child frame leads to empty space)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 12 Mar 2020 23:28:02 +0000

Your bug report

#36672: 27.0.50; NS build: Creating child frame leads to empty space

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
36672: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36672
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#36672: 27.0.50; NS build: Creating child frame leads to empty space
From: Alan Third <[email-masked]>
To: Andrii Kolomoiets <[email-masked]>
Cc: [email-masked]
Date: Fri, 13 Mar 2020 00:27:09 +0100 (CET)
List-Id: <debbugs-submit.debbugs.gnu.org>

On Tue, Mar 10, 2020 at 10:42:11AM +0200, Andrii Kolomoiets wrote:
> Please see attached patch. Log message is also provided.

This all looks good to me. Pushed to master as
bbc48b263485c26c6823eabdbbd7e9af62178e34.

Thank you!

-- 
Alan Third

Subject: 27.0.50; NS build: Creating child frame leads to empty space
From: Andrii Kolomoiets <[email-masked]>
To: [email-masked]
Date: Mon, 15 Jul 2019 20:38:31 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Assume there are only one space - Desktop
1. emacs -Q
2. M-x toggle-frame-fullscreen
   Now there are two spaces - Desktop and *scratch*
3. eval (make-frame `((parent-frame . ,(window-frame))))
   Now there are three spaces:
   - Desktop
   - Empty space named *scratch* with emacs menu
   - *scratch* with emacs frames but without menu

Although attached patch solves this problem for me these cases still not
handled right way:

1. Removing parent-frame property leaves the frame is same space:

(let ((new-frame (make-frame `((parent-frame . ,(window-frame))))))
  (modify-frame-parameters new-frame `((parent-frame . nil))))

Maybe child frame must go fullscreen if ex-parent frame is in
fullscreen.

2. Setting parent frame after frame creation:

(let ((frame (window-frame))
      (new-frame (make-frame)))
  (modify-frame-parameters new-frame `((parent-frame . ,frame))))

Thanks!

In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin18.6.0, NS
appkit-1671.50 Version 10.14.5 (Build 18F132))
Windowing system distributor 'Apple', version 10.3.1671
System Description:  Mac OS X 10.14.5