… | |
… | |
319 | 0L, 10000000L, False, AnyPropertyType, |
319 | 0L, 10000000L, False, AnyPropertyType, |
320 | &pt.encoding, &pt.format, &pt.nitems, |
320 | &pt.encoding, &pt.format, &pt.nitems, |
321 | &after, &pt.value) != Success || !pt.nitems) |
321 | &after, &pt.value) != Success || !pt.nitems) |
322 | return strdup (""); |
322 | return strdup (""); |
323 | |
323 | |
324 | if (pt.nitems) |
324 | if (pt.nitems && pt.format == 8) |
325 | { |
325 | { |
326 | (force_mb ? XmbTextPropertyToTextList : Xutf8TextPropertyToTextList) |
326 | (force_mb ? XmbTextPropertyToTextList : Xutf8TextPropertyToTextList) |
327 | (dpy, &pt, &list, &count); |
327 | (dpy, &pt, &list, &count); |
328 | |
328 | |
329 | data = strdup (list[0]); |
329 | data = strdup (list[0]); |