minor fixes

This commit is contained in:
fluxgen 2003-07-28 18:30:02 +00:00
parent 8f01d5e9b7
commit 8079bfdb0c

View file

@ -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: 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" #include "WinClient.hh"
@ -506,6 +506,8 @@ void WinClient::setGroupLeftWindow(Window win) {
} }
bool WinClient::hasGroupLeftWindow() const { 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; int format;
Atom atom_return; Atom atom_return;
unsigned long num = 0, len = 0; unsigned long num = 0, len = 0;
@ -518,14 +520,13 @@ bool WinClient::hasGroupLeftWindow() const {
&format, &num, &len, &format, &num, &len,
(unsigned char **) &data) && (unsigned char **) &data) &&
data) { data) {
if (num != 1) {
XFree(data); XFree(data);
if (num != 1)
return false; return false;
} else { else
XFree(data);
return true; return true;
} }
}
return false; return false;
} }