From ab67bd0e890393697ed655cde53e2a0f39536e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 13 Nov 2003 15:50:56 +0000 Subject: [PATCH] inOnDesktop( NET::OnAllDesktops ) should always return true. svn path=/trunk/kdebase/kwin/; revision=266831 --- client.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.h b/client.h index 79b50651d6..575e908caa 100644 --- a/client.h +++ b/client.h @@ -94,7 +94,7 @@ class Client : public QObject, public KDecorationDefines int desktop() const; void setDesktop( int ); - bool isOnDesktop( int d ) const; + bool isOnDesktop( int d ) const; // for d == NET::OnAllDesktop returns always true bool isOnCurrentDesktop() const; bool isOnAllDesktops() const; void setOnAllDesktops( bool set ); @@ -592,7 +592,7 @@ inline bool Client::isOnAllDesktops() const */ inline bool Client::isOnDesktop( int d ) const { - return desk == d || /*desk == 0 ||*/ isOnAllDesktops(); + return desk == d || /*desk == 0 ||*/ isOnAllDesktops() || d == NET::OnAllDesktops; } inline