all repos — fluxbox @ 04739b2d1f7ffcecb6f8398afdcc81e41921d1b4

custom fork of the fluxbox windowmanager

initialize all member variables, otherwise unclean state in some circumstances

(valgrind complained a lot about ::updateGeometry() accessing uninitialized variables)
Mathias Gumz akira at fluxbox dot org
commit

04739b2d1f7ffcecb6f8398afdcc81e41921d1b4

parent

b8f9ac6d69aa38afeca4d07d0bd8daa5333c02cb

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M src/FbTk/FbWindow.ccsrc/FbTk/FbWindow.cc

@@ -79,7 +79,8 @@ int class_type):

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 @@ long eventmask,

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) {