From 45e2d67eb2975e1d0346eb7180c0c2ebd5c1c2a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 10 Jan 2003 12:36:17 +0000 Subject: [PATCH] Make hasClient() check NET::Desktop windows too. svn path=/trunk/kdebase/kwin/; revision=198738 --- workspace.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workspace.cpp b/workspace.cpp index 0ba8f312a5..a3e75af434 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -764,6 +764,10 @@ bool Workspace::hasClient(Client* c) return TRUE; } + for ( ClientList::ConstIterator it = desktops.begin(); it != desktops.end(); ++it) { + if ( (*it) == c ) + return TRUE; + } return FALSE; }