projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removing a set of deprecated joystick functions from "freeglutdll.def" per e-mail...
[freeglut]
/
src
/
freeglut_window.c
diff --git
a/src/freeglut_window.c
b/src/freeglut_window.c
index
a3d2830
..
1327b1e
100644
(file)
--- a/
src/freeglut_window.c
+++ b/
src/freeglut_window.c
@@
-593,12
+593,17
@@
void fgSetWindow ( SFG_Window *window )
{
#if TARGET_HOST_POSIX_X11
if ( window )
{
#if TARGET_HOST_POSIX_X11
if ( window )
+ {
glXMakeContextCurrent(
fgDisplay.Display,
window->Window.Handle,
window->Window.Handle,
window->Window.Context
);
glXMakeContextCurrent(
fgDisplay.Display,
window->Window.Handle,
window->Window.Handle,
window->Window.Context
);
+
+ /* also register this window to receive spaceball events */
+ fgSpaceballSetWindow(window);
+ }
#elif TARGET_HOST_MS_WINDOWS
if( fgStructure.CurrentWindow )
ReleaseDC( fgStructure.CurrentWindow->Window.Handle,
#elif TARGET_HOST_MS_WINDOWS
if( fgStructure.CurrentWindow )
ReleaseDC( fgStructure.CurrentWindow->Window.Handle,