diff options
author | fluxgen <fluxgen> | 2003-07-28 18:30:02 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-07-28 18:30:02 (GMT) |
commit | 8079bfdb0c2e9466a997e21863be575e46aef2c8 (patch) | |
tree | f28c50fd507c6ffbe9fe583c2924d16255adfbbf /src | |
parent | 8f01d5e9b728effabcf301d7a4cece2d50d5fd5c (diff) | |
download | fluxbox_lack-8079bfdb0c2e9466a997e21863be575e46aef2c8.zip fluxbox_lack-8079bfdb0c2e9466a997e21863be575e46aef2c8.tar.bz2 |
minor fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/WinClient.cc | 15 |
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 | ||
508 | bool WinClient::hasGroupLeftWindow() const { | 508 | bool 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 | ||