Discussion:
unknown
1970-01-01 00:00:00 UTC
Permalink
http://bit.ly/Jpf6DN

you can see it allows some null-handle situations. Something other
than DFB_OK or DFB_NOIMPL will cause it to stop processing the event
right away and just return... which is odd because DFB_NOIMPL is what
you get when the callback is NULL, so you would expect it to work
gracefully with no callback. Anyway, DR_FAILURE (same as DFB_FAILURE)
gets you that quick exit which seems to keep you happily receiving
those key events...

Only suggestion I could give is look at any extra processing you might
be doing with the ISaWManManager functions, like SwitchFocus or
Insert/RemoveWindow? Just a thought.

Cheers,

-russ
Send directfb-users mailing list submissions to
To subscribe or unsubscribe via the World Wide Web, visit
=A0 =A0 =A0 =A0http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb=
-users
or, via email, send a message with subject or body 'help' to
You can reach the person managing the list at
When replying, please edit your Subject line so it is more specific
than "Re: Contents of directfb-users digest..."
=A0 1. How to handle a sawman callback with a null window =A0 =A0 =A0 =A0=
handle
=A0 =A0 =A0(Darren Garvey)
----------------------------------------------------------------------
Message: 1
Date: Fri, 18 May 2012 02:00:08 +0100
Subject: [directfb-users] How to handle a sawman callback with a null
=A0 =A0 =A0 =A0window =A0handle
ail.gmail.com>
Content-Type: text/plain; charset=3D"iso-8859-1"
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_FAILU=
RE
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 alwa=
ys
correct, is it documented?
Kind Regards,
Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.directfb.org/pipermail/directfb-users/attachments/20120=
518/8b0b2faa/attachment-0001.html>
------------------------------
_______________________________________________
directfb-users mailing list
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
End of directfb-users Digest, Vol 87, Issue 6
*********************************************
Loading...