summaryrefslogtreecommitdiff
path: root/x11-wm/blackbox/files/patch-src_Slit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/blackbox/files/patch-src_Slit.cc')
-rw-r--r--x11-wm/blackbox/files/patch-src_Slit.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/x11-wm/blackbox/files/patch-src_Slit.cc b/x11-wm/blackbox/files/patch-src_Slit.cc
new file mode 100644
index 000000000000..0ea8917f4c56
--- /dev/null
+++ b/x11-wm/blackbox/files/patch-src_Slit.cc
@@ -0,0 +1,16 @@
+--- src/Slit.cc.orig 2005-01-04 20:58:33.000000000 +0800
++++ src/Slit.cc 2011-06-21 13:31:00.000000000 +0800
+@@ -248,6 +248,13 @@
+ bt::PixmapCache::find(screen->screenNumber(), texture,
+ frame.rect.width(), frame.rect.height(),
+ frame.pixmap);
++
++ if ((texture.texture() & bt::Texture::Gradient) && frame.pixmap)
++ XSetWindowBackgroundPixmap(display, frame.window, frame.pixmap);
++ else if ((texture.texture() & bt::Texture::Solid))
++ XSetWindowBackground(display, frame.window,
++ texture.color1().pixel(screen->screenNumber()));
++
+ XClearArea(display, frame.window, 0, 0,
+ frame.rect.width(), frame.rect.height(), True);
+