… | |
… | |
1624 | { |
1624 | { |
1625 | Window cr; |
1625 | Window cr; |
1626 | XTranslateCoordinates (dpy, parent, display->root, 0, 0, &x, &y, &cr); |
1626 | XTranslateCoordinates (dpy, parent, display->root, 0, 0, &x, &y, &cr); |
1627 | } |
1627 | } |
1628 | |
1628 | |
1629 | Pixmap |
|
|
1630 | rxvt_term::get_pixmap_property (Atom property) |
|
|
1631 | { |
|
|
1632 | Pixmap pixmap = None; |
|
|
1633 | |
|
|
1634 | int aformat; |
|
|
1635 | unsigned long nitems, bytes_after; |
|
|
1636 | Atom atype; |
|
|
1637 | unsigned char *prop; |
|
|
1638 | int result = XGetWindowProperty (dpy, display->root, property, |
|
|
1639 | 0L, 1L, False, XA_PIXMAP, &atype, &aformat, |
|
|
1640 | &nitems, &bytes_after, &prop); |
|
|
1641 | if (result == Success) |
|
|
1642 | { |
|
|
1643 | if (atype == XA_PIXMAP) |
|
|
1644 | pixmap = *(Pixmap *)prop; |
|
|
1645 | XFree (prop); |
|
|
1646 | } |
|
|
1647 | |
|
|
1648 | return pixmap; |
|
|
1649 | } |
|
|
1650 | |
|
|
1651 | #ifdef HAVE_BG_PIXMAP |
1629 | #ifdef HAVE_BG_PIXMAP |
1652 | |
1630 | |
1653 | void |
1631 | void |
1654 | rxvt_term::update_background () |
1632 | rxvt_term::update_background () |
1655 | { |
1633 | { |