diff options
author | markt <markt> | 2007-01-06 19:03:33 (GMT) |
---|---|---|
committer | markt <markt> | 2007-01-06 19:03:33 (GMT) |
commit | 94e2c89053325beeb9f79d2e682adf614f636ca8 (patch) | |
tree | b778a387684ef8baef35e318c75de1810408a7f4 /src/Toolbar.cc | |
parent | 8db2d4f26eae2d608e864aabf6218ad461c4da6b (diff) | |
download | fluxbox-94e2c89053325beeb9f79d2e682adf614f636ca8.zip fluxbox-94e2c89053325beeb9f79d2e682adf614f636ca8.tar.bz2 |
make "force pseudotransparency" menu item work immediately
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index df5bf44..c0d3f88 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -477,9 +477,12 @@ void Toolbar::reconfigure() { | |||
477 | frame.window.setBorderWidth(theme().border().width()); | 477 | frame.window.setBorderWidth(theme().border().width()); |
478 | 478 | ||
479 | bool have_composite = FbTk::Transparent::haveComposite(); | 479 | bool have_composite = FbTk::Transparent::haveComposite(); |
480 | // have_composite could have changed, so we need to change both | ||
480 | if (have_composite) { | 481 | if (have_composite) { |
481 | frame.window.setOpaque(alpha()); | 482 | frame.window.setOpaque(alpha()); |
483 | frame.window.setAlpha(255); | ||
482 | } else { | 484 | } else { |
485 | frame.window.setOpaque(255); | ||
483 | frame.window.setAlpha(alpha()); | 486 | frame.window.setAlpha(alpha()); |
484 | } | 487 | } |
485 | frame.window.clear(); | 488 | frame.window.clear(); |