… | |
… | |
1652 | if (xa[prop_id]) |
1652 | if (xa[prop_id]) |
1653 | { |
1653 | { |
1654 | int aformat; |
1654 | int aformat; |
1655 | unsigned long nitems, bytes_after; |
1655 | unsigned long nitems, bytes_after; |
1656 | Atom atype; |
1656 | Atom atype; |
1657 | unsigned char *prop = NULL; |
1657 | unsigned char *prop; |
1658 | int result = XGetWindowProperty (dpy, display->root, xa[prop_id], |
1658 | int result = XGetWindowProperty (dpy, display->root, xa[prop_id], |
1659 | 0L, 1L, False, XA_PIXMAP, &atype, &aformat, |
1659 | 0L, 1L, False, XA_PIXMAP, &atype, &aformat, |
1660 | &nitems, &bytes_after, &prop); |
1660 | &nitems, &bytes_after, &prop); |
1661 | if (result == Success && prop && atype == XA_PIXMAP) |
1661 | if (result == Success) |
|
|
1662 | { |
|
|
1663 | if (atype == XA_PIXMAP) |
1662 | pixmap = *(Pixmap *)prop; |
1664 | pixmap = *(Pixmap *)prop; |
1663 | XFree (prop); |
1665 | XFree (prop); |
|
|
1666 | } |
1664 | } |
1667 | } |
1665 | |
1668 | |
1666 | return pixmap; |
1669 | return pixmap; |
1667 | } |
1670 | } |
1668 | |
1671 | |