summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/bsetroot.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/bsetroot.cc b/util/bsetroot.cc
index 1091b5d..e83859c 100644
--- a/util/bsetroot.cc
+++ b/util/bsetroot.cc
@@ -222,7 +222,7 @@ void bsetroot::solid() {
222 222
223 FbRootWindow root(screen); 223 FbRootWindow root(screen);
224 224
225 FbTk::GContext gc(screen); 225 FbTk::GContext gc(root);
226 gc.setForeground(c); 226 gc.setForeground(c);
227 227
228 pixmaps[screen] = XCreatePixmap(display(), 228 pixmaps[screen] = XCreatePixmap(display(),
@@ -290,7 +290,7 @@ void bsetroot::modula(int x, int y) {
290 if (! b.isAllocated()) 290 if (! b.isAllocated())
291 b.setPixel(BlackPixel(display(), screen)); 291 b.setPixel(BlackPixel(display(), screen));
292 292
293 FbTk::GContext gc(screen); 293 FbTk::GContext gc(root);
294 294
295 gc.setForeground(f); 295 gc.setForeground(f);
296 gc.setBackground(b); 296 gc.setBackground(b);