projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't show window when creating menu (better fix then making it very small and hiding...
[freeglut]
/
src
/
x11
/
fg_window_x11.c
diff --git
a/src/x11/fg_window_x11.c
b/src/x11/fg_window_x11.c
index
71814ac
..
f9e94a4
100644
(file)
--- a/
src/x11/fg_window_x11.c
+++ b/
src/x11/fg_window_x11.c
@@
-300,12
+300,6
@@
void fgPlatformOpenWindow( SFG_Window* window, const char* title,
}
#endif
}
#endif
- /*
- * XXX Assume the new window is visible by default
- * XXX Is this a safe assumption?
- */
- window->State.Visible = GL_TRUE;
-
sizeHints.flags = 0;
if ( positionUse )
sizeHints.flags |= USPosition;
sizeHints.flags = 0;
if ( positionUse )
sizeHints.flags |= USPosition;
@@
-362,7
+356,11
@@
void fgPlatformOpenWindow( SFG_Window* window, const char* title,
fgRegisterDevices( fgDisplay.pDisplay.Display, &(window->Window.Handle) );
#endif
fgRegisterDevices( fgDisplay.pDisplay.Display, &(window->Window.Handle) );
#endif
- XMapWindow( fgDisplay.pDisplay.Display, window->Window.Handle );
+ if (!window->IsMenu) /* Don't show window after creation if its a menu */
+ {
+ XMapWindow( fgDisplay.pDisplay.Display, window->Window.Handle );
+ window->State.Visible = GL_TRUE;
+ }
XFree(visualInfo);
XFree(visualInfo);