|
From: | Robert Weiner |
Subject: | Re: select-frame-set-input-focus fails to raise the frame |
Date: | Wed, 13 Dec 2017 19:33:00 -0500 |
FWIW, changing sit-for to sleep-for in ‘test’ results in 4 seconds of
a blank frame, but otherwise behaves as expected. This seems to work,
though:
(defun test ()
(let ((depress-frame (selected-frame))
(release-frame (make-frame)))
(select-frame-set-input-focus depress-frame)
(sit-for 0)
(sit-for 4)
(select-frame-set-input-focus release-frame)))
(test)
Presumably the first sit-for clears any pending input which then means
the second sit-for can actually do its thing.
(I think this is a side‐effect of the way input works on the NS port
where various things that you might not think of as ‘input’ are
essentially indistinguishable from keyboard input.)
[Prev in Thread] | Current Thread | [Next in Thread] |