1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-12-03 07:28:51 -05:00

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 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
//
@ -336,16 +325,24 @@ static GLboolean createWindow(_GLFWwindow* window,
{
if (!wndconfig->decorated)
{
MotifWmHints hints;
hints.flags = MWM_HINTS_DECORATIONS;
hints.decorations = 0;
struct
{
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,
_glfw.x11.MOTIF_WM_HINTS,
_glfw.x11.MOTIF_WM_HINTS, 32,
PropModeReplace,
(unsigned char*) &hints,
sizeof(MotifWmHints) / sizeof(long));
sizeof(hints) / sizeof(long));
}
if (wndconfig->floating)