From e9ae291109cc44d86b53875a65470a6f34a32aef Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 12 Jun 2003 14:28:00 +0000 Subject: using desktop names --- src/Gnome.cc | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/Gnome.cc b/src/Gnome.cc index bafcd78..6eef315 100644 --- a/src/Gnome.cc +++ b/src/Gnome.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Gnome.cc,v 1.25 2003/05/19 22:40:40 fluxgen Exp $ +// $Id: Gnome.cc,v 1.26 2003/06/12 14:28:00 fluxgen Exp $ #include "Gnome.hh" @@ -61,6 +61,7 @@ void Gnome::initForScreen(BScreen &screen) { m_gnome_wm_supporting_wm_check, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &gnome_win, 1); + // supported gnome atoms Atom gnomeatomlist[] = { m_gnome_wm_supporting_wm_check, m_gnome_wm_win_workspace_names, @@ -69,7 +70,6 @@ void Gnome::initForScreen(BScreen &screen) { m_gnome_wm_win_hints, m_gnome_wm_win_layer }; - //list atoms that we support screen.rootWindow().changeProperty(m_gnome_wm_prot, XA_ATOM, 32, PropModeReplace, @@ -143,7 +143,7 @@ void Gnome::updateClientList(BScreen &screen) { Window *wl = new (nothrow) Window[num]; if (wl == 0) { - cerr<<"Fatal: Out of memory, can't allocate for gnome client list"<display(), screen.rootWindow().window(), &text, m_gnome_wm_win_workspace_names); XFree(text.value); } - + + // destroy name buffers for (int i = 0; i < number_of_desks; i++) delete [] names[i]; } -- cgit v0.11.2