aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArkadiusz Bokowy <arkadiusz.bokowy@gmail.com>2015-02-07 20:12:13 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-02-08 10:14:48 (GMT)
commite3300411eb8ca05ce8fffec74d3a182cc74404d2 (patch)
tree172d49be18760155e31de897c92c18318bdb69e6
parent9f824b89fd2f7f7705f4ef3d086d34fb5ba520cb (diff)
downloadfluxbox-e3300411eb8ca05ce8fffec74d3a182cc74404d2.zip
fluxbox-e3300411eb8ca05ce8fffec74d3a182cc74404d2.tar.bz2
Fix: typo during refactoring
Commit 63d9d69 introduced a bug, which has manifested itself by setting window transparent state to the fully opaque (255).
-rw-r--r--src/FbWinFrame.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index caf3ce3..48d6e87 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -457,7 +457,7 @@ void FbWinFrame::setFocus(bool newvalue) {
457 457
458 int alpha = getAlpha(m_state.focused); 458 int alpha = getAlpha(m_state.focused);
459 int opaque = 255; 459 int opaque = 255;
460 if (!FbTk::Transparent::haveComposite()) { 460 if (FbTk::Transparent::haveComposite()) {
461 std::swap(alpha, opaque); 461 std::swap(alpha, opaque);
462 } 462 }
463 m_tab_container.setAlpha(alpha); 463 m_tab_container.setAlpha(alpha);
@@ -935,7 +935,7 @@ void FbWinFrame::reconfigure() {
935 if (FbTk::Transparent::haveRender()) { 935 if (FbTk::Transparent::haveRender()) {
936 int alpha = getAlpha(m_state.focused); 936 int alpha = getAlpha(m_state.focused);
937 int opaque = 255; 937 int opaque = 255;
938 if (!FbTk::Transparent::haveComposite()) { 938 if (FbTk::Transparent::haveComposite()) {
939 std::swap(alpha, opaque); 939 std::swap(alpha, opaque);
940 } 940 }
941 m_tab_container.setAlpha(alpha); 941 m_tab_container.setAlpha(alpha);