emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: select-frame-set-input-focus fails to raise the frame


From: Robert Weiner
Subject: Re: select-frame-set-input-focus fails to raise the frame
Date: Wed, 13 Dec 2017 16:53:20 -0500

On Wed, Dec 13, 2017 at 3:49 PM, Alan Third <address@hidden> wrote:
On Tue, Dec 12, 2017 at 06:02:38PM -0500, Bob Weiner wrote:
> (defun test ()
>   (let ((depress-frame (selected-frame))
>       (release-frame (make-frame)))
>     (select-frame-set-input-focus depress-frame)
>     ;; On MacOS, depress-frame is never raised to the top
>     ;; of the frame stack and never is given input focus
>     ;; after release-frame is created.
>     (sit-for 4)
>     (select-frame-set-input-focus release-frame)))
>
> (test)
>
> ----------

I feel I’m being a bit dim here, but depress-frame is already raised
and focused when I run this in the scratch buffer, so I’m unsure how
to try replicating it.

​On macOS for me, the (make-frame) call puts the new frame at the top of the stack and sets input focus there for me,
so depress-frame is under that.

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]