From Erik Johnson, "There is an issue on win32 if the application hides the cursor using GraphicsWindowWin32::useCursor(false).  The cursor has a habit of re-showing itself.
From Erik Johnson, "There is an issue on win32 if the application hides the cursor using GraphicsWindowWin32::useCursor(false).  The cursor has a habit of re-showing itself.

To reproduce, on win32:

-Run osgViewer in a windowed mode, with the cursor off, as such:
    osgViewer::Viewer::Windows windows;
    viewer.getWindows(windows);
    for(osgViewer::Viewer::Windows::iterator itr = windows.begin();
       itr != windows.end();
       ++itr)
    {
       (*itr)->useCursor( false );
    }

-Quickly move the cursor into the window  (cursor it should be hidden)
-Resize the window by dragging the border (notice the cursor changes to "resize" cursor)
-Move the cursor back to the inside of the window (notice the cursor is not hidden anymore)

The attached SVN patch will set the cursor to a "NoCursor" during useCursor(false).  This correctly stores the no cursor state, so it can be rejuvenated after a future cursor change.  This patch also fixes a couple instances where a hidden cursor should show itself, like when it's on the title bar, or the window close button."


openscenegraph/osg,jtorresfabra/osg,tomasthoresen/osg,tomasthoresen/osg,artoolkit/osg,jtorresfabra/osg,openscenegraph/osg,marchelbling/osg,jtorresfabra/osg,openscenegraph/osg,marchelbling/osg,tomasthoresen/osg,marchelbling/osg,scrawl/osg,artoolkit/osg,artoolkit/osg,scrawl/osg,tomasthoresen/osg,scrawl/osg,scrawl/osg,jtorresfabra/osg,marchelbling/osg,openscenegraph/osg,artoolkit/osg