Quoting Monge Maurizio ([EMAIL PROTECTED]):
> 
> I am currently trying to do a port of Qt 3.0.1 to DirectFB, but I

Sounds great, I once looked at the source and decided not to do it yet ;)

> encountered a few problems about message queues.

I would prefer to say 'event queue' because 'message queue'
reminded me of SysV Message Queues, but that's not important ;)

> For every window there is a call GetEvent, while i think it could be
> better with a call GetEvent in the DisplayLayer and a parameter in the
> Event structure that specify the window, in order to allow a global
> message queue.

Currently there are two methods of handling events from multiple windows:

1. Have an event dispatcher thread for each window that does a WaitForEvent.
2. Regularly poll events for one window after another via GetEvent.

> Does anybody know how this problem was solved in Gtk-DirectFB??

Gtk-DirectFB uses the second method. But it could also use the first one.

I would prefer the first method as it reduces CPU load and increases
responsiveness.

An additional method that's not implemented yet would be to join window
events into one event buffer. You could call WaitForEvent then.
This method is implemented for raw input device access.
Implementing it for window events would require a window event buffer
interface. Instead I would prefer doing an 'IDirectFBEventBuffer' that
can be used for raw input device event sources and window event sources.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

           convergence integrated media GmbH


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to