summaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorScott Moynes <smoynes@nexus.carleton.ca>2002-10-16 22:33:34 +0000
committerScott Moynes <smoynes@nexus.carleton.ca>2002-10-16 22:33:34 +0000
commit402e229e76dfd8b4cda8b7cf1fccaec5acf7570c (patch)
tree0fb7bf734aeeb8440692b38b2496d8a604695217 /src/Window.cc
parentbe127cb4c6682ec1fa8e28e1668d8e332be69ac8 (diff)
Allow for customizing of the dropShadows.
If xft.flags: shadow then you can specify the tint with xft.shadow.tint: which should be a number 0 to 255. xft.shadow.offset: will specify how many pixels to add in positioning. Also, try to fix the inheritence in the pressed button borders. Need a style to test this
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 8a1bbda2..f3103165 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -600,21 +600,17 @@ void BlackboxWindow::decorate(void) {
if (needsPressed) {
texture = &(screen->getWindowStyle()->b_pressed);
- Pixmap pbutton = texture->render(frame.button_w, frame.button_w,
- pbutton);
- unsigned long pixel;
-
- if (!pbutton) {
- pixel = texture->color().pixel();
- if (needsPressed & 0x1)
- frame.pfbutton_pixel = pixel;
- if (needsPressed & 0x2)
- frame.pubutton_pixel = pixel;
- } else {
- if (needsPressed & 0x1)
- frame.pfbutton = pbutton;
- if (needsPressed & 0x2)
- frame.pubutton = pbutton;
+ if (needsPressed & 0x1) {
+ frame.pfbutton = texture->render(frame.button_w, frame.button_w,
+ frame.pfbutton);
+ if (! frame.pfbutton)
+ frame.pfbutton_pixel = texture->color().pixel();
+ }
+ if (needsPressed & 0x2) {
+ frame.pubutton = texture->render(frame.button_w, frame.button_w,
+ frame.pubutton);
+ if (! frame.pubutton)
+ frame.pubutton = texture->color().pixel();
}
}