Discussion:
[directfb-users] How to handle a sawman callback with a null window handle
Darren Garvey
2012-05-18 01:00:08 UTC
Permalink
Hi all,

I've got a relatively simple question, hopefully I haven't missed a
sawman-specific mailing list here.

One thing I've noticed when using sawman is that on occasion the callback
for "set focus window" - ie. the 10th callback in the sawman callbacks -
gets a null window handle. In that instance, if I don't return a DR_FAILURE
then no windows seem to receive key events from the DFB input driver.

I can hypothesis at the logic of how this could occur, but due to the
(ahem) minimal documentation around sawman the simple question is what is
the "good 'n' proper" way of handling a sawman callback which is given a
null window handle? Is it callback specific, is the intuitive option always
correct, is it documented?

Kind Regards,

Darren
Russell Dawson
2012-05-18 18:02:46 UTC
Permalink
sawman behaviour is often callback-specific, and you just have to look
at the code. Fortunately sawman is not huge (there's not much code to
look through).

Loading...