/*
- * freeglut_window_x11.c
+ * fg_window_x11.c
*
* Window management methods for X11
*
#include "x11/fg_window_x11_glx.h"
#endif
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 255
+#endif
+
/* Motif window hints, only define needed ones */
typedef struct
{
fgState.DisplayMode |= GLUT_DOUBLE ;
fghChooseConfig(&WINDOW_CONFIG);
fgState.DisplayMode &= ~GLUT_DOUBLE;
+
+ if( WINDOW_CONFIG ) goto done_retry;
}
#endif
fgState.DisplayMode &= ~GLUT_MULTISAMPLE ;
fghChooseConfig(&WINDOW_CONFIG);
fgState.DisplayMode |= GLUT_MULTISAMPLE;
+
+ if( WINDOW_CONFIG ) goto done_retry;
+ }
+
+ if( fgState.DisplayMode & GLUT_SRGB )
+ {
+ fgState.DisplayMode &= ~GLUT_SRGB ;
+ fghChooseConfig(&WINDOW_CONFIG);
+ fgState.DisplayMode |= GLUT_SRGB;
+
+ if( WINDOW_CONFIG ) goto done_retry;
}
}
+done_retry:
FREEGLUT_INTERNAL_ERROR_EXIT( WINDOW_CONFIG != NULL,
"FBConfig with necessary capabilities not found", "fgOpenWindow" );
MotifWmHints hints = {0};
hints.flags = MWM_HINTS_DECORATIONS;
hints.decorations = (fgState.DisplayMode & GLUT_CAPTIONLESS) ? MWM_DECOR_BORDER:0;
- printf("%lu\n", hints.decorations);
XChangeProperty(fgDisplay.pDisplay.Display, window->Window.Handle,
XInternAtom( fgDisplay.pDisplay.Display, "_MOTIF_WM_HINTS", False ),