all repos — fluxbox @ 51007f35a531c892b1ee2013cc7f180ff20c0744

custom fork of the fluxbox windowmanager

Little fixes to bugs highlighted by valgrind - Simon
rathnor rathnor
commit

51007f35a531c892b1ee2013cc7f180ff20c0744

parent

2f9ba66d12d67e1a0bdd102d1e665b8b55161fe8

7 files changed, 18 insertions(+), 11 deletions(-)

jump to
M src/Ewmh.ccsrc/Ewmh.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Ewmh.cc,v 1.13 2003/03/04 21:41:05 fluxgen Exp $ +// $Id: Ewmh.cc,v 1.14 2003/04/09 17:20:00 rathnor Exp $ #include "Ewmh.hh"

@@ -33,6 +33,7 @@ using namespace std;

Ewmh::Ewmh() { createAtoms(); + enableUpdate(); } Ewmh::~Ewmh() {
M src/FbWinFrame.ccsrc/FbWinFrame.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrame.cc,v 1.15 2003/04/03 22:37:43 rathnor Exp $ +// $Id: FbWinFrame.cc,v 1.16 2003/04/09 17:20:01 rathnor Exp $ #include "FbWinFrame.hh" #include "ImageControl.hh"

@@ -67,6 +67,7 @@ m_clientwin(0),

m_bevel(1), m_use_titlebar(true), m_use_handle(true), + m_focused(false), m_button_pm(0), m_themelistener(*this) { // m_shape(new Shape(m_window, 0)) { //Shape::TOPLEFT | Shape::TOPRIGHT)) {
M src/Gnome.ccsrc/Gnome.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Gnome.cc,v 1.13 2003/03/04 11:13:42 fluxgen Exp $ +// $Id: Gnome.cc,v 1.14 2003/04/09 17:20:01 rathnor Exp $ #include "Gnome.hh"

@@ -33,6 +33,7 @@ using namespace std;

Gnome::Gnome() { createAtoms(); + enableUpdate(); } Gnome::~Gnome() {

@@ -160,7 +161,7 @@ m_gnome_wm_win_client_list,

XA_CARDINAL, 32, PropModeReplace, (unsigned char *)wl, num); - delete wl; + delete[] wl; } void Gnome::updateWorkspaceNames(BScreen &screen) {
M src/IconBar.ccsrc/IconBar.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: IconBar.cc,v 1.27 2003/04/09 13:00:21 fluxgen Exp $ +// $Id: IconBar.cc,v 1.28 2003/04/09 17:20:02 rathnor Exp $ #include "IconBar.hh"

@@ -80,6 +80,7 @@

IconBar::IconBar(BScreen *scrn, Window parent, FbTk::Font &font): m_screen(scrn), m_parent(parent), + m_focus_pm(None), m_vertical(false), m_font(font) {
M src/Tab.hhsrc/Tab.hh

@@ -19,15 +19,15 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Tab.hh,v 1.17 2002/12/01 13:42:00 rathnor Exp $ +// $Id: Tab.hh,v 1.18 2003/04/09 17:20:03 rathnor Exp $ #ifndef TAB_HH #define TAB_HH #include <X11/Xlib.h> #include <strings.h> -class FluxboxWindow; - +//class FluxboxWindow; +#include "Window.hh" /** Note: Tab is a friend of FluxboxWindow */
M src/Toolbar.ccsrc/Toolbar.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.cc,v 1.67 2003/03/23 04:18:59 rathnor Exp $ +// $Id: Toolbar.cc,v 1.68 2003/04/09 17:20:04 rathnor Exp $ #include "Toolbar.hh"

@@ -194,7 +194,9 @@ 1, 1), // size

nwbutton(ArrowButton::RIGHT, // arrow type window, // parent 0, 0, // pos - 1, 1) // size + 1, 1), // size + hour(-1), // start with invalid number to force update + minute(-1) { FbTk::EventManager &evm = *FbTk::EventManager::instance();
M src/Window.ccsrc/Window.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.129 2003/03/22 05:13:08 rathnor Exp $ +// $Id: Window.cc,v 1.130 2003/04/09 17:20:06 rathnor Exp $ #include "Window.hh"

@@ -202,6 +202,7 @@ // enable decorations

decorations.enabled = true; // set client window client.window = w; + client.window_group = None; // set default values for decoration decorations.menu = true; //override menu option