X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fx11%2Ffg_window_x11.c;h=ce4a52eaefdd4863c26b63abd02567c639eb212f;hb=5f776d0acf334829af8ab0855d6f67794dd898c9;hp=a512b02188b26e08640b8d7eb2dc58ec6cc58570;hpb=4d59497d7c601c5591ff5a313c5332e89131903c;p=freeglut diff --git a/src/x11/fg_window_x11.c b/src/x11/fg_window_x11.c index a512b02..ce4a52e 100644 --- a/src/x11/fg_window_x11.c +++ b/src/x11/fg_window_x11.c @@ -352,17 +352,16 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title, XSetWMProtocols( fgDisplay.pDisplay.Display, window->Window.Handle, &fgDisplay.pDisplay.DeleteWindow, 1 ); - + if (!isSubWindow && !window->IsMenu && ((fgState.DisplayMode & GLUT_BORDERLESS) || (fgState.DisplayMode & GLUT_CAPTIONLESS))) { - /* _MOTIF_WM_HINTS is replaced by _NET_WM_WINDOW_TYPE, but that property does not allow precise + /* _MOTIF_WM_HINTS is replaced by _NET_WM_WINDOW_TYPE, but that property does not allow precise * control over the visual style of the window, which is what we are trying to achieve here. * Stick with Motif and hope for the best... */ MotifWmHints hints = {0}; hints.flags = MWM_HINTS_DECORATIONS; hints.decorations = (fgState.DisplayMode & GLUT_CAPTIONLESS) ? MWM_DECOR_BORDER:0; - printf("%i\n",hints.decorations); XChangeProperty(fgDisplay.pDisplay.Display, window->Window.Handle, XInternAtom( fgDisplay.pDisplay.Display, "_MOTIF_WM_HINTS", False ), @@ -370,7 +369,7 @@ void fgPlatformOpenWindow( SFG_Window* window, const char* title, PropModeReplace, (unsigned char*) &hints, sizeof(MotifWmHints) / sizeof(long)); - } + } if (fgDisplay.pDisplay.NetWMSupported