Skip to content
Snippets Groups Projects
Commit fbb633f4 authored by Olivier Fourdan's avatar Olivier Fourdan
Browse files

Blender sets only 4 elements in MWM hints intead of 5 as defined, as we ignore...

Blender sets only 4 elements in MWM hints intead of 5 as defined, as we ignore the fifth element anyway, read only 4 elements and make blender happy...


(Old svn revision: 11299)
parent a3ba392b
No related branches found
No related tags found
No related merge requests found
......@@ -210,7 +210,7 @@ getMotifHints (Display * dpy, Window w)
{
if (items_read >= MWM_HINTS_ELEMENTS)
{
result = g_new(PropMwmHints, 1);
result = g_new0(PropMwmHints, 1);
memcpy (result, data, sizeof (PropMwmHints));
}
XFree (data);
......
......@@ -32,7 +32,7 @@
#include <X11/Xatom.h>
#include <glib.h>
#define MWM_HINTS_ELEMENTS 5L
#define MWM_HINTS_ELEMENTS 4L
#define MWM_HINTS_FUNCTIONS (1L << 0)
#define MWM_HINTS_DECORATIONS (1L << 1)
......@@ -101,7 +101,7 @@ typedef struct
CARD32 functions;
CARD32 decorations;
INT32 inputMode;
CARD32 status;
CARD32 status; /* ignored */
}
PropMwmHints;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment