summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/WinClient.cc15
1 files 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 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: WinClient.cc,v 1.22 2003/07/28 16:29:25 rathnor Exp $ 22// $Id: WinClient.cc,v 1.23 2003/07/28 18:30:02 fluxgen Exp $
23 23
24#include "WinClient.hh" 24#include "WinClient.hh"
25 25
@@ -506,6 +506,8 @@ void WinClient::setGroupLeftWindow(Window win) {
506} 506}
507 507
508bool WinClient::hasGroupLeftWindow() const { 508bool WinClient::hasGroupLeftWindow() const {
509 // try to find _FLUXBOX_GROUP_LEFT atom in window
510 // if we have one then we have a group left window
509 int format; 511 int format;
510 Atom atom_return; 512 Atom atom_return;
511 unsigned long num = 0, len = 0; 513 unsigned long num = 0, len = 0;
@@ -518,14 +520,13 @@ bool WinClient::hasGroupLeftWindow() const {
518 &format, &num, &len, 520 &format, &num, &len,
519 (unsigned char **) &data) && 521 (unsigned char **) &data) &&
520 data) { 522 data) {
521 if (num != 1) {
522 XFree(data);
523 return false;
524 } else {
525 XFree(data); 523 XFree(data);
526 return true; 524 if (num != 1)
527 } 525 return false;
526 else
527 return true;
528 } 528 }
529
529 return false; 530 return false;
530} 531}
531 532