Little fixes to bugs highlighted by valgrind - Simon
This commit is contained in:
parent
2f9ba66d12
commit
51007f35a5
7 changed files with 18 additions and 11 deletions
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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"
|
#include "Ewmh.hh"
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ using namespace std;
|
||||||
|
|
||||||
Ewmh::Ewmh() {
|
Ewmh::Ewmh() {
|
||||||
createAtoms();
|
createAtoms();
|
||||||
|
enableUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
Ewmh::~Ewmh() {
|
Ewmh::~Ewmh() {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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 "FbWinFrame.hh"
|
||||||
#include "ImageControl.hh"
|
#include "ImageControl.hh"
|
||||||
|
@ -67,6 +67,7 @@ FbWinFrame::FbWinFrame(FbWinFrameTheme &theme, FbTk::ImageControl &imgctrl,
|
||||||
m_bevel(1),
|
m_bevel(1),
|
||||||
m_use_titlebar(true),
|
m_use_titlebar(true),
|
||||||
m_use_handle(true),
|
m_use_handle(true),
|
||||||
|
m_focused(false),
|
||||||
m_button_pm(0),
|
m_button_pm(0),
|
||||||
m_themelistener(*this) {
|
m_themelistener(*this) {
|
||||||
// m_shape(new Shape(m_window, 0)) { //Shape::TOPLEFT | Shape::TOPRIGHT)) {
|
// m_shape(new Shape(m_window, 0)) { //Shape::TOPLEFT | Shape::TOPRIGHT)) {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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"
|
#include "Gnome.hh"
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ using namespace std;
|
||||||
|
|
||||||
Gnome::Gnome() {
|
Gnome::Gnome() {
|
||||||
createAtoms();
|
createAtoms();
|
||||||
|
enableUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
Gnome::~Gnome() {
|
Gnome::~Gnome() {
|
||||||
|
@ -160,7 +161,7 @@ void Gnome::updateClientList(BScreen &screen) {
|
||||||
XA_CARDINAL, 32,
|
XA_CARDINAL, 32,
|
||||||
PropModeReplace, (unsigned char *)wl, num);
|
PropModeReplace, (unsigned char *)wl, num);
|
||||||
|
|
||||||
delete wl;
|
delete[] wl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Gnome::updateWorkspaceNames(BScreen &screen) {
|
void Gnome::updateWorkspaceNames(BScreen &screen) {
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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"
|
#include "IconBar.hh"
|
||||||
|
|
||||||
|
@ -80,6 +80,7 @@ unsigned int IconBarObj::height() const {
|
||||||
IconBar::IconBar(BScreen *scrn, Window parent, FbTk::Font &font):
|
IconBar::IconBar(BScreen *scrn, Window parent, FbTk::Font &font):
|
||||||
m_screen(scrn),
|
m_screen(scrn),
|
||||||
m_parent(parent),
|
m_parent(parent),
|
||||||
|
m_focus_pm(None),
|
||||||
m_vertical(false),
|
m_vertical(false),
|
||||||
m_font(font)
|
m_font(font)
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,15 +19,15 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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
|
#ifndef TAB_HH
|
||||||
#define TAB_HH
|
#define TAB_HH
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
class FluxboxWindow;
|
//class FluxboxWindow;
|
||||||
|
#include "Window.hh"
|
||||||
/**
|
/**
|
||||||
Note: Tab is a friend of FluxboxWindow
|
Note: Tab is a friend of FluxboxWindow
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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"
|
#include "Toolbar.hh"
|
||||||
|
|
||||||
|
@ -194,7 +194,9 @@ Toolbar::Frame::Frame(FbTk::EventHandler &evh, int screen_num):
|
||||||
nwbutton(ArrowButton::RIGHT, // arrow type
|
nwbutton(ArrowButton::RIGHT, // arrow type
|
||||||
window, // parent
|
window, // parent
|
||||||
0, 0, // pos
|
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();
|
FbTk::EventManager &evm = *FbTk::EventManager::instance();
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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"
|
#include "Window.hh"
|
||||||
|
|
||||||
|
@ -202,6 +202,7 @@ FluxboxWindow::FluxboxWindow(Window w, BScreen *s, int screen_num,
|
||||||
decorations.enabled = true;
|
decorations.enabled = true;
|
||||||
// set client window
|
// set client window
|
||||||
client.window = w;
|
client.window = w;
|
||||||
|
client.window_group = None;
|
||||||
|
|
||||||
// set default values for decoration
|
// set default values for decoration
|
||||||
decorations.menu = true; //override menu option
|
decorations.menu = true; //override menu option
|
||||||
|
|
Loading…
Reference in a new issue