initialize all member variables, otherwise unclean state in some circumstances
(valgrind complained a lot about ::updateGeometry() accessing uninitialized variables)
This commit is contained in:
parent
b8f9ac6d69
commit
04739b2d1f
1 changed files with 6 additions and 1 deletions
|
@ -79,7 +79,8 @@ FbWindow::FbWindow(int screen_num,
|
|||
FbDrawable(),
|
||||
m_parent(0),
|
||||
m_screen_num(screen_num),
|
||||
m_x(0), m_y(0), m_width(0), m_height(0),
|
||||
m_window(0),
|
||||
m_x(0), m_y(0), m_width(1), m_height(1),
|
||||
m_border_width(0),
|
||||
m_border_color(0),
|
||||
m_depth(0),
|
||||
|
@ -99,8 +100,12 @@ FbWindow::FbWindow(const FbWindow &parent,
|
|||
bool override_redirect,
|
||||
bool save_unders,
|
||||
unsigned int depth, int class_type):
|
||||
FbDrawable(),
|
||||
m_parent(&parent),
|
||||
m_screen_num(parent.screenNumber()),
|
||||
m_window(0),
|
||||
m_x(0), m_y(0),
|
||||
m_width(1), m_height(1),
|
||||
m_destroy(true),
|
||||
m_lastbg_color_set(false), m_lastbg_color(0),
|
||||
m_lastbg_pm(0), m_renderer(0) {
|
||||
|
|
Loading…
Reference in a new issue