From 7c628def006648c92ff4d94f9156fa410eb2b8aa Mon Sep 17 00:00:00 2001 From: mathias Date: Tue, 30 Nov 2004 22:50:25 +0000 Subject: context needs a "window", not the "screen", thanx Rob Stevens for reporting --- util/bsetroot.cc | 4 ++-- 1 file 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() { FbRootWindow root(screen); - FbTk::GContext gc(screen); + FbTk::GContext gc(root); gc.setForeground(c); pixmaps[screen] = XCreatePixmap(display(), @@ -290,7 +290,7 @@ void bsetroot::modula(int x, int y) { if (! b.isAllocated()) b.setPixel(BlackPixel(display(), screen)); - FbTk::GContext gc(screen); + FbTk::GContext gc(root); gc.setForeground(f); gc.setBackground(b); -- cgit v0.11.2