aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-16 09:38:32 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-16 09:38:32 (GMT)
commita65e9c686ea8b9c029cb77d3c109f05a36bfe042 (patch)
tree53f038efdedfb9273c4b6e1e539008857b2a3f56 /src
parentdf996370d0f6c606e5135bb0a461514f46532195 (diff)
downloadfluxbox-a65e9c686ea8b9c029cb77d3c109f05a36bfe042.zip
fluxbox-a65e9c686ea8b9c029cb77d3c109f05a36bfe042.tar.bz2
Fix semantic errors (wrong variable names etc)
Uncovered by coverity-scan.
Diffstat (limited to 'src')
-rw-r--r--src/FbRootWindow.cc2
-rw-r--r--src/Remember.cc3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/FbRootWindow.cc b/src/FbRootWindow.cc
index 0cd730e..d17d56f 100644
--- a/src/FbRootWindow.cc
+++ b/src/FbRootWindow.cc
@@ -74,6 +74,6 @@ FbRootWindow::FbRootWindow(int screen_num):
74 m_colormap = XCreateColormap(disp, window(), m_visual, AllocNone); 74 m_colormap = XCreateColormap(disp, window(), m_visual, AllocNone);
75 } 75 }
76 if (m_decorationVisual != DefaultVisual(disp, screen_num)) { 76 if (m_decorationVisual != DefaultVisual(disp, screen_num)) {
77 m_decorationColormap = XCreateColormap(disp, window(), m_visual, AllocNone); 77 m_decorationColormap = XCreateColormap(disp, window(), m_decorationVisual, AllocNone);
78 } 78 }
79} 79}
diff --git a/src/Remember.cc b/src/Remember.cc
index acbbddf..77cc889 100644
--- a/src/Remember.cc
+++ b/src/Remember.cc
@@ -247,6 +247,7 @@ string escapeRememberChars(const string& str) {
247 escaped_str += '\\'; 247 escaped_str += '\\';
248 default: 248 default:
249 escaped_str += *i; 249 escaped_str += *i;
250 break;
250 } 251 }
251 } 252 }
252 253
@@ -982,7 +983,7 @@ void Remember::save() {
982 case (WindowState::DECOR_BORDER): 983 case (WindowState::DECOR_BORDER):
983 apps_file << " [Deco]\t{BORDER}" << endl; 984 apps_file << " [Deco]\t{BORDER}" << endl;
984 break; 985 break;
985 case (WindowState::DECORM_TAB): 986 case (WindowState::DECOR_TAB):
986 apps_file << " [Deco]\t{TAB}" << endl; 987 apps_file << " [Deco]\t{TAB}" << endl;
987 break; 988 break;
988 default: 989 default: