all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jiegec <jiegec@qq.com>
To: Alan Third <alan@idiocy.org>
Cc: 29953@debbugs.gnu.org
Subject: bug#29953: 26.0.90; Moving a child frame before making it visible makes the child frame not showing any more on macOS
Date: Thu, 4 Jan 2018 16:38:18 +0800	[thread overview]
Message-ID: <16484.345336403$1515055036@news.gmane.org> (raw)
In-Reply-To: <20180103140704.GA98841@breton.holly.idiocy.org>


[-- Attachment #1.1: Type: text/plain, Size: 1513 bytes --]


开 3 January 2018 在 10:07:12 PM, Alan Third (alan@idiocy.org) 写到:
On Wed, Jan 03, 2018 at 07:55:12AM +0800, Jiege Chen wrote: 
> 
> Snippet: 
> 
> This code uses `oddp', which might not be available from `emacs -Q'. 

You can replace it with (= 1 (mod count 2)) 
Yup, that’s right.



> On my macOS Sierra, the frame only shows once and never shows again. 

There were two issues interacting here: invisible child frames lose 
track of their parents in NS, and frames that are off‐screen don’t 
have an associated screen but our positioning code will only position 
a frame if it knows it’s screen. 

I’ve fixed the first issue so that we look up the parent through the 
Emacs frame structs, and the second by positioning according to the 
main screen if the frame doesn’t have a screen. 

I also fixed what I think is a bug when child frames are positioned 
with negative values. On X it looks as though a negative value always 
results in positioning according to the bottom‐right of the parent 
frame, but on NS it would be positioned to the left and above the 
parent frame. NS now behaves like X. 

Patch attached. 
I have tested it locally, and it fixes the problem for me. Both the snippet and lsp-ui work well now.



> Related issue: https://github.com/emacs-lsp/lsp-ui/issues/21
Are you using threads? GUI calls and threads don’t mix well yet, 
unfortunately. 

-- 
Alan Third 


Best regards,
Jiajie Chen

[-- Attachment #1.2: Type: text/html, Size: 5554 bytes --]

[-- Attachment #2: Message signed with OpenPGP using AMPGpg --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2018-01-04  8:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5a4c1c86.0ac7df0a.a769a.93cbSMTPIN_ADDED_BROKEN@mx.google.com>
2018-01-03 14:07 ` bug#29953: 26.0.90; Moving a child frame before making it visible makes the child frame not showing any more on macOS Alan Third
2018-01-04  8:38   ` jiegec [this message]
     [not found]   ` <5a4de826.cdaddf0a.a4a57.beeeSMTPIN_ADDED_BROKEN@mx.google.com>
2018-01-04 19:37     ` Alan Third
2018-01-06 23:22       ` Alan Third
2018-01-02 23:55 Jiege Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='16484.345336403$1515055036@news.gmane.org' \
    --to=jiegec@qq.com \
    --cc=29953@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.