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: Alan Third
Subject: Re: select-frame-set-input-focus fails to raise the frame
Date: Wed, 13 Dec 2017 20:49:23 +0000
User-agent: Mutt/1.9.1 (2017-09-22)

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)
> 
> ----------
> If I call test, I get the behavior described in its comments, basically
> only release-frame is ever raised and has input focus.  If I edebug
> the function, then I get the behavior, I expect with each frame raised
> and with input focus, first the depress-frame for 4 seconds and then
> release-frame.

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.
-- 
Alan Third



reply via email to

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