From: Rick Stikkers <rstikkers@telis.org>
Subject: Re: XGrab Pointer does work...why???
Date: Wed, 30 Apr 2003 19:34:55 -0700
Date: 2003-04-30T19:34:55-07:00 [thread overview]
Message-ID: <3EB087CF.8020006@telis.org> (raw)
In-Reply-To: 6091ca88.0304301711.61d724df@posting.google.com
VNCoder wrote:
>G'day all,
> Using the Ada C-binding for Xlib (see below). After create a
>window, I tried to grab the pointer immediately but it doesn't seem to
>grab at all.
> Only if I put a delay (sleep for few seconds) before I grab then it
>works.
> Anyone know what's happening??
>
>
>
>
>
>
<snip>
You don't say what GUI builder, compiler, and platform you are using,
but I have noticed similar behavior on a Rational VADS Ada 83 compiler
under Solaris 2.6 using BXAda as a GUI builder. I'm not too sure if I'm
correct, but it almost seems that the combined implementation for
XWindows puts some of the X processing into a task. If you don't break
out of the main processing, sometimes the additional background
processing does not seem to have completed. I have also noticed
problems when you attempt to put the X processing routines into a
separate task. I've tried to do stuff that does not work when put into
a task but the exact same code works in the main body of the program. I
pretty much gave up on trying to figure that one out a long time ago.
From my experience, you don't need a 5 second delay. As long as you
put some kind of delay it will allow the other code to finish processing
and it should run. I normally put a 0.01 second delay in and that seems
to work fine for my applications.
Rick
prev parent reply other threads:[~2003-05-01 2:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-01 1:11 XGrab Pointer does work...why??? VNCoder
2003-05-01 2:34 ` Rick Stikkers [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox