[osg-submissions] osgViewer/X11: now really(?) fix capslock

Melchior FRANZ melchior.franz at gmail.com
Fri Mar 14 07:05:06 PDT 2008


Attached is a fix for remaining problems in capslock handling:
It sets osgGA's keymask when restoring keys on FocusIn, according
to the state values of XKeyEvent and XCrossingEvent. (These are
the only source for X11's current capslock state that avoids
pulling in the XKB extension.)

Files included in the archive:
  ./src/osgViewer/GraphicsWindowX11.cpp
  ./include/osgViewer/api/X11/GraphicsWindowX11

I hope you don't find yet another problem, but I won't hold
my breath. Worked here at least in all my tests.  :-)

m.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x11-capslockII.diff
Type: text/x-diff
Size: 1820 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080314/44ece3e8/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x11-capslockII.tar.gz
Type: application/x-tgz
Size: 13235 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080314/44ece3e8/attachment-0003.bin 


More information about the osg-submissions mailing list