… | |
… | |
1538 | void |
1538 | void |
1539 | bgPixmap_t::apply () |
1539 | bgPixmap_t::apply () |
1540 | { |
1540 | { |
1541 | if (target) |
1541 | if (target) |
1542 | { |
1542 | { |
1543 | flags &= ~isVtOrigin; |
|
|
1544 | |
|
|
1545 | if (pixmap != None) |
1543 | if (pixmap != None) |
1546 | { |
1544 | { |
1547 | /* set target's background to pixmap */ |
1545 | /* set target's background to pixmap */ |
1548 | # ifdef ENABLE_TRANSPARENCY |
1546 | # ifdef ENABLE_TRANSPARENCY |
1549 | if (flags & isTransparent) |
1547 | if (flags & isTransparent) |
… | |
… | |
1555 | XSetWindowBackgroundPixmap (target->dpy, target->scrollBar.win, ParentRelative); |
1553 | XSetWindowBackgroundPixmap (target->dpy, target->scrollBar.win, ParentRelative); |
1556 | } |
1554 | } |
1557 | else |
1555 | else |
1558 | # endif |
1556 | # endif |
1559 | { |
1557 | { |
1560 | flags |= isVtOrigin; |
|
|
1561 | /* force old pixmap dereference in case it was transparent before :*/ |
1558 | /* force old pixmap dereference in case it was transparent before :*/ |
1562 | XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]); |
1559 | XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]); |
1563 | XSetWindowBackgroundPixmap (target->dpy, target->vt, pixmap); |
1560 | XSetWindowBackgroundPixmap (target->dpy, target->vt, pixmap); |
1564 | /* do we also need to set scrollbar's background here ? */ |
1561 | /* do we also need to set scrollbar's background here ? */ |
1565 | |
1562 | |