179 unsigned long nitems;
180 unsigned long bytes_after;
183 property = XInternAtom (
display,
"_MOTIF_WM_HINTS", False);
185 0, LONG_MAX, False, AnyPropertyType,
186 &actual_type, &actual_format,
187 &nitems, &bytes_after, &data);
189 if (result ==
Success && data != NULL)
195 data_size = nitems *
sizeof (long);
196 max_size =
sizeof (*hints);
198 hints = calloc (1, max_size);
200 memcpy (hints, data, data_size > max_size ? max_size : data_size);