Quoting Alex Song ([EMAIL PROTECTED]): > hi, > > thanks for your detailed reply :) > > since i will be getting the same event twice, can i create a separate event > buffer for each window as well as a raw input event buffer. so in the main > event loop i wait for an event on the raw event buffer and then when i get > an event i check if it is a window event. if it is then i check each > window's event buffer and handle events accordingly otherwise i handle the > keystrokes. this approach does not need to track window id's at the cost of > more event buffers. i am basically going to use the raw event buffer to > "wake up" my main event loop. am i correct ? what do you guys think ?
Do I get you right that you want to attach the windows to the raw event buffer as I suggested but additionally create a buffer for each window just to distinguish between the windows? If you want several buffers you should use several threads each waiting for events in its buffer. If you want a thread for each window you should create a buffer for each window but I would not attach the window to the raw event buffer, too. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" Convergence GmbH -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
