context needs a "window", not the "screen", thanx Rob Stevens for reporting
mathias mathias
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
util/bsetroot.cc
→
util/bsetroot.cc
@@ -222,7 +222,7 @@ c.setPixel(BlackPixel(display(), screen));
FbRootWindow root(screen); - FbTk::GContext gc(screen); + FbTk::GContext gc(root); gc.setForeground(c); pixmaps[screen] = XCreatePixmap(display(),@@ -290,7 +290,7 @@ f.setPixel(WhitePixel(display(), screen));
if (! b.isAllocated()) b.setPixel(BlackPixel(display(), screen)); - FbTk::GContext gc(screen); + FbTk::GContext gc(root); gc.setForeground(f); gc.setBackground(b);