Remove global symbols for Motif WM hints

This commit is contained in:
Camilla Berglund 2015-08-14 14:52:07 +02:00
parent 85a01bfd9b
commit b69b4a9f2a

View File

@ -47,17 +47,6 @@
#define Button6 6 #define Button6 6
#define Button7 7 #define Button7 7
typedef struct
{
unsigned long flags;
unsigned long functions;
unsigned long decorations;
long input_mode;
unsigned long status;
} MotifWmHints;
#define MWM_HINTS_DECORATIONS (1L << 1)
// Wait for data to arrive // Wait for data to arrive
// //
@ -336,16 +325,24 @@ static GLboolean createWindow(_GLFWwindow* window,
{ {
if (!wndconfig->decorated) if (!wndconfig->decorated)
{ {
MotifWmHints hints; struct
hints.flags = MWM_HINTS_DECORATIONS; {
hints.decorations = 0; unsigned long flags;
unsigned long functions;
unsigned long decorations;
long input_mode;
unsigned long status;
} hints;
hints.flags = 2; // Set decorations
hints.decorations = 0; // No decorations
XChangeProperty(_glfw.x11.display, window->x11.handle, XChangeProperty(_glfw.x11.display, window->x11.handle,
_glfw.x11.MOTIF_WM_HINTS, _glfw.x11.MOTIF_WM_HINTS,
_glfw.x11.MOTIF_WM_HINTS, 32, _glfw.x11.MOTIF_WM_HINTS, 32,
PropModeReplace, PropModeReplace,
(unsigned char*) &hints, (unsigned char*) &hints,
sizeof(MotifWmHints) / sizeof(long)); sizeof(hints) / sizeof(long));
} }
if (wndconfig->floating) if (wndconfig->floating)