Hi,

I'm using OSG 2.8.1 and I have a hopefully useful suggestion regarding
_lastEvent (and probably _lastPush) in the WindowManager:

My problem is that I destroy or replace entire windows e.g. after
clicking a widget and especially after some keyboard interaction (cursor
keys, return key as a replacement for mouse interaction). When I then
move the mouse, _lastEvent still has a pointer to the widget last
entered by the mouse and wants to send a LEAVE event, but the widget is
already destroyed.

So my simple suggestion would just be to use some ref_ptr for
_lastEvent, which works fine in my workaround :-)

I think that shouldn't cause any problems.

Best regards,
        Simon

-- 
 ___________________________________
/                                   \
| Dipl.-Inform. Simon Notheis        \________________________
|                                    |                        \
| Institut für Prozessrechentechnik, | Gebäude 40.28, Zi. 109 |
| Automation und Robotik (IPR)       | Engler-Bunte-Ring 8    |
| Universität Karlsruhe (TH)         | D-76131 Karlsruhe      |
|                                    |                        |
| http://wwwipr.ira.uka.de/~notheis  | Telefon: 0721-608 5442 |
| http://wwwipr.ira.uka.de/~iirob    | Fax:     0721-608 7141 |
\____________________________________|________________________/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to