Themuppeteer
Programmer
Hello,
My event loop goes like this
while(1)
{
//....update windows
cout<<"Length="<<XQLength<<endl;
while(XQLength())
{
//...handle events
}
XFlush(dis);
---------------------------------------
I have a small window bouncing around the screen with
move window,the window generates expose events to the
other windows on the screen that do not move.
The problem is,that the events are heaped up, and then
are all released at once. So my output is:
Length=0
Length=0
Length=0
Length=0
Length=0
Length=0
Length=0
Length=0
Length=0
Length=8045
--> so the box bounces, and deletes his background
until this point the box stops and the event handling
begins. :-(
Why don't I get my event immediately after the expose
should have happened?
Thnx a lot for you help.
The Muppeteer.
themuppeteer@hotmail.com
Don't eat yellow snow...
My event loop goes like this
while(1)
{
//....update windows
cout<<"Length="<<XQLength<<endl;
while(XQLength())
{
//...handle events
}
XFlush(dis);
---------------------------------------
I have a small window bouncing around the screen with
move window,the window generates expose events to the
other windows on the screen that do not move.
The problem is,that the events are heaped up, and then
are all released at once. So my output is:
Length=0
Length=0
Length=0
Length=0
Length=0
Length=0
Length=0
Length=0
Length=0
Length=8045
--> so the box bounces, and deletes his background
until this point the box stops and the event handling
begins. :-(
Why don't I get my event immediately after the expose
should have happened?
Thnx a lot for you help.
The Muppeteer.
themuppeteer@hotmail.com
Don't eat yellow snow...