… | |
… | |
2214 | if (img) // TODO: cannot be false |
2214 | if (img) // TODO: cannot be false |
2215 | { |
2215 | { |
2216 | img = img->clone (); // own the img |
2216 | img = img->clone (); // own the img |
2217 | |
2217 | |
2218 | if (img->repeat != RepeatNormal) // X11 only supports RepeatNormal as bg pixmap |
2218 | if (img->repeat != RepeatNormal) // X11 only supports RepeatNormal as bg pixmap |
2219 | img->sub_rect (0, 0, |
2219 | img->sub_rect (0, 0, |
2220 | border ? THIS->vt_width : THIS->szHint.width, |
2220 | border ? THIS->vt_width : THIS->szHint.width, |
2221 | border ? THIS->vt_height : THIS->szHint.height) |
2221 | border ? THIS->vt_height : THIS->szHint.height) |
2222 | ->replace (img); |
2222 | ->replace (img); |
2223 | |
2223 | |
2224 | // just in case, should usually be a nop |
2224 | // just in case, should usually be a nop |
2225 | img->reify () |
2225 | img->reify () |
2226 | ->replace (img); |
2226 | ->replace (img); |
2227 | |
2227 | |