inOnDesktop( NET::OnAllDesktops ) should always return true.

svn path=/trunk/kdebase/kwin/; revision=266831
This commit is contained in:
Luboš Luňák 2003-11-13 15:50:56 +00:00
parent 037e47326c
commit ab67bd0e89

View file

@ -94,7 +94,7 @@ class Client : public QObject, public KDecorationDefines
int desktop() const; int desktop() const;
void setDesktop( int ); void setDesktop( int );
bool isOnDesktop( int d ) const; bool isOnDesktop( int d ) const; // for d == NET::OnAllDesktop returns always true
bool isOnCurrentDesktop() const; bool isOnCurrentDesktop() const;
bool isOnAllDesktops() const; bool isOnAllDesktops() const;
void setOnAllDesktops( bool set ); void setOnAllDesktops( bool set );
@ -592,7 +592,7 @@ inline bool Client::isOnAllDesktops() const
*/ */
inline bool Client::isOnDesktop( int d ) const inline bool Client::isOnDesktop( int d ) const
{ {
return desk == d || /*desk == 0 ||*/ isOnAllDesktops(); return desk == d || /*desk == 0 ||*/ isOnAllDesktops() || d == NET::OnAllDesktops;
} }
inline inline