diff --git a/src/icewmbg.cc b/src/icewmbg.cc index f43f188d9..80a370730 100644 --- a/src/icewmbg.cc +++ b/src/icewmbg.cc @@ -677,6 +677,15 @@ ref Background::renderBackground(Image back, YColor color) { } ref pixm = todraw->renderToPixmap(g.rdepth()); if (pixm != null) { + if (verbose) { + tlog(" ... @%d,%d %ux%u+%d+%d", + max(0, int(bw - width) / 2), + max(0, int(bh - height) / 2), + min(width, bw), + min(height, bh), + max(x, x + int(width - bw) / 2), + max(y, y + int(height - bh) / 2)); + } g.drawPixmap(pixm, max(0, int(bw - width) / 2), max(0, int(bh - height) / 2), diff --git a/src/icewmbg_prefs.h b/src/icewmbg_prefs.h index 5d7d719c5..75c6824b0 100644 --- a/src/icewmbg_prefs.h +++ b/src/icewmbg_prefs.h @@ -3,7 +3,7 @@ /* Synchronize with MAXWORKSPACES from wmmgr.h */ #define MAX_WORKSPACES 20 -#define ICEBG_MAX_ARGS 5120 +#define ICEBG_MAX_ARGS 5632 #include "yconfig.h" diff --git a/src/ypaint.cc b/src/ypaint.cc index cad6b96e3..2ded34c83 100644 --- a/src/ypaint.cc +++ b/src/ypaint.cc @@ -576,7 +576,7 @@ void Graphics::drawPixmap(ref pix, int sx, int sy, Picture source = pix->picture(), destin = picture(); if (source && destin) { XRenderComposite(display(), PictOpOver, source, None, destin, - 0, 0, 0, 0, dx - xOrigin, dy - yOrigin, w, h); + sx, sy, 0, 0, dx - xOrigin, dy - yOrigin, w, h); return; } @@ -658,7 +658,7 @@ void Graphics::compositeImage(ref img, int sx, int sy, unsigned w, unsig XRenderComposite(display(), img->hasAlpha() ? PictOpOver : PictOpSrc, source, None, picture(), - 0, 0, 0, 0, rx, ry, + sx, sy, 0, 0, rx, ry, unsigned(rw), unsigned(rh)); return; }