From 7e04a570e3c1aa6c462041a6fc42d12f01a1f3a4 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 15 Jun 2003 19:34:34 +0000 Subject: using winclient instance name --- src/Workspace.cc | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/Workspace.cc b/src/Workspace.cc index 89efbf5..4b75803 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Workspace.cc,v 1.72 2003/06/13 20:50:49 fluxgen Exp $ +// $Id: Workspace.cc,v 1.73 2003/06/15 19:34:34 fluxgen Exp $ #include "Workspace.hh" @@ -331,7 +331,7 @@ class FindInGroup { public: FindInGroup(const FluxboxWindow &w):m_w(w) { } bool operator ()(const string &name) { - return (name == m_w.instanceName()); + return (name == m_w.winClient().getWMClassName()); } private: const FluxboxWindow &m_w; @@ -341,9 +341,10 @@ private: //Note: this function doesn't check if the window is groupable bool Workspace::checkGrouping(FluxboxWindow &win) { + if (win.numClients() == 0) + return false; #ifdef DEBUG - cerr<<__FILE__<<"("<<__LINE__<<"): Checking grouping. ("<instanceName()<winClient().getWMClassName()<attachClient(win.winClient()); return true; // grouping done + } + } } -- cgit v0.11.2