From 8079bfdb0c2e9466a997e21863be575e46aef2c8 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 28 Jul 2003 18:30:02 +0000 Subject: minor fixes --- src/WinClient.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/WinClient.cc b/src/WinClient.cc index 3f817d8..7332a95 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: WinClient.cc,v 1.22 2003/07/28 16:29:25 rathnor Exp $ +// $Id: WinClient.cc,v 1.23 2003/07/28 18:30:02 fluxgen Exp $ #include "WinClient.hh" @@ -506,6 +506,8 @@ void WinClient::setGroupLeftWindow(Window win) { } bool WinClient::hasGroupLeftWindow() const { + // try to find _FLUXBOX_GROUP_LEFT atom in window + // if we have one then we have a group left window int format; Atom atom_return; unsigned long num = 0, len = 0; @@ -518,14 +520,13 @@ bool WinClient::hasGroupLeftWindow() const { &format, &num, &len, (unsigned char **) &data) && data) { - if (num != 1) { - XFree(data); - return false; - } else { XFree(data); - return true; - } + if (num != 1) + return false; + else + return true; } + return false; } -- cgit v0.11.2