aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-06-21 09:53:01 (GMT)
committerrathnor <rathnor>2004-06-21 09:53:01 (GMT)
commit6a51cefb2f67c041f19cbb3842adb81ff54b4771 (patch)
tree14665adc9976bc6875477949d9a4370f6540a1c2 /src/Workspace.cc
parentf4d9fec50a44c65d12420c6114ac3aca198ee678 (diff)
downloadfluxbox-6a51cefb2f67c041f19cbb3842adb81ff54b4771.zip
fluxbox-6a51cefb2f67c041f19cbb3842adb81ff54b4771.tar.bz2
fix groups file problem with windows not showing properly
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r--src/Workspace.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc
index b9776d7..18a2ba5 100644
--- a/src/Workspace.cc
+++ b/src/Workspace.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Workspace.cc,v 1.97 2004/06/07 11:46:04 rathnor Exp $ 25// $Id: Workspace.cc,v 1.98 2004/06/21 09:53:01 rathnor Exp $
26 26
27#include "Workspace.hh" 27#include "Workspace.hh"
28 28
@@ -281,7 +281,7 @@ bool Workspace::checkGrouping(FluxboxWindow &win) {
281 281
282 string instance_name = win.winClient().getWMClassName(); 282 string instance_name = win.winClient().getWMClassName();
283 283
284 // go throu every group and search for matching win instancename 284 // go through every group and search for matching win instancename
285 GroupList::iterator g(m_groups.begin()); 285 GroupList::iterator g(m_groups.begin());
286 GroupList::iterator g_end(m_groups.end()); 286 GroupList::iterator g_end(m_groups.end());
287 for (; g != g_end; ++g) { 287 for (; g != g_end; ++g) {
@@ -303,7 +303,8 @@ bool Workspace::checkGrouping(FluxboxWindow &win) {
303 (*g).end(), 303 (*g).end(),
304 FindInGroup(*(*wit))) != (*g).end()) { 304 FindInGroup(*(*wit))) != (*g).end()) {
305 // make sure the window is groupable 305 // make sure the window is groupable
306 if ( !(*wit)->isGroupable() && (*wit)->winClient().fbwindow() == &win) 306 // and don't group with ourself
307 if ( !(*wit)->isGroupable() || (*wit)->winClient().fbwindow() == &win)
307 break; // try next name 308 break; // try next name
308#ifdef DEBUG 309#ifdef DEBUG
309 cerr<<__FILE__<<"("<<__FUNCTION__<<"): window ("<<*wit<<") attaching window ("<<&win<<")"<<endl; 310 cerr<<__FILE__<<"("<<__FUNCTION__<<"): window ("<<*wit<<") attaching window ("<<&win<<")"<<endl;