unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Is make-frame async?
@ 2005-05-31 15:30 PT
  2005-06-01 20:21 ` rgb
  0 siblings, 1 reply; 2+ messages in thread
From: PT @ 2005-05-31 15:30 UTC (permalink / raw)


I tried creating a new frame and setting the mouse pointer to its 0,0  
position in 21.3 on Linux:

(let ((frame (make-frame ...)))
   (set-mouse-position frame 0 0))

Sometimes it works, sometimes the pointer is put into the 0,0 corner of  
the desktop instead.

Maybe make-frame returns before the frame actually appears? The  
documentation doesn't say so.
If this is the case is there a standard way to wait for the frame "to be  
ready"?

I thought about polling it with frame-visible-p, but this method doesn't  
seem too elegant.

Is there an other way?

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is make-frame async?
  2005-05-31 15:30 Is make-frame async? PT
@ 2005-06-01 20:21 ` rgb
  0 siblings, 0 replies; 2+ messages in thread
From: rgb @ 2005-06-01 20:21 UTC (permalink / raw)


> I thought about polling it with frame-visible-p, but this method doesn't
> seem too elegant.
>
> Is there an other way?

This is probably what you want to try.

(let ((redisplay-dont-pause t))(sit-for 0))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-01 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31 15:30 Is make-frame async? PT
2005-06-01 20:21 ` rgb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).