aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-05-16 12:24:34 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-05-16 12:24:34 (GMT)
commit04739b2d1f7ffcecb6f8398afdcc81e41921d1b4 (patch)
tree74b3b775f7f37d6b3b5ef12b9e5c5b51592edf95 /src/FbTk
parentb8f9ac6d69aa38afeca4d07d0bd8daa5333c02cb (diff)
downloadfluxbox-04739b2d1f7ffcecb6f8398afdcc81e41921d1b4.zip
fluxbox-04739b2d1f7ffcecb6f8398afdcc81e41921d1b4.tar.bz2
initialize all member variables, otherwise unclean state in some circumstances
(valgrind complained a lot about ::updateGeometry() accessing uninitialized variables)
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/FbWindow.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 956415d..e098e11 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -79,7 +79,8 @@ FbWindow::FbWindow(int screen_num,
79 FbDrawable(), 79 FbDrawable(),
80 m_parent(0), 80 m_parent(0),
81 m_screen_num(screen_num), 81 m_screen_num(screen_num),
82 m_x(0), m_y(0), m_width(0), m_height(0), 82 m_window(0),
83 m_x(0), m_y(0), m_width(1), m_height(1),
83 m_border_width(0), 84 m_border_width(0),
84 m_border_color(0), 85 m_border_color(0),
85 m_depth(0), 86 m_depth(0),
@@ -99,8 +100,12 @@ FbWindow::FbWindow(const FbWindow &parent,
99 bool override_redirect, 100 bool override_redirect,
100 bool save_unders, 101 bool save_unders,
101 unsigned int depth, int class_type): 102 unsigned int depth, int class_type):
103 FbDrawable(),
102 m_parent(&parent), 104 m_parent(&parent),
103 m_screen_num(parent.screenNumber()), 105 m_screen_num(parent.screenNumber()),
106 m_window(0),
107 m_x(0), m_y(0),
108 m_width(1), m_height(1),
104 m_destroy(true), 109 m_destroy(true),
105 m_lastbg_color_set(false), m_lastbg_color(0), 110 m_lastbg_color_set(false), m_lastbg_color(0),
106 m_lastbg_pm(0), m_renderer(0) { 111 m_lastbg_pm(0), m_renderer(0) {