aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authormathias <mathias>2004-11-30 22:50:25 (GMT)
committermathias <mathias>2004-11-30 22:50:25 (GMT)
commit7c628def006648c92ff4d94f9156fa410eb2b8aa (patch)
tree8f24cf49c2129a4456cf65edc11f333b2a56fa74 /util
parent33db9b21e250d5f35f89bc2523a83525b33d7075 (diff)
downloadfluxbox_pavel-7c628def006648c92ff4d94f9156fa410eb2b8aa.zip
fluxbox_pavel-7c628def006648c92ff4d94f9156fa410eb2b8aa.tar.bz2
context needs a "window", not the "screen", thanx Rob Stevens for reporting
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);