Get window class.

svn path=/branches/work/kwin_composite/; revision=654513
This commit is contained in:
Luboš Luňák 2007-04-16 11:48:14 +00:00
parent 03da4e3ae5
commit 970f4c4d60
3 changed files with 7 additions and 0 deletions

View file

@ -664,6 +664,11 @@ QString EffectWindowImpl::caption() const
return "";
}
QString EffectWindowImpl::windowClass() const
{
return toplevel->resourceName() + ' ' + toplevel->resourceClass();
}
QPixmap EffectWindowImpl::icon() const
{
if( Client* c = dynamic_cast<Client*>( toplevel ))

View file

@ -127,6 +127,7 @@ class EffectWindowImpl : public EffectWindow
virtual double opacity() const;
virtual QString caption() const;
virtual QPixmap icon() const;
virtual QString windowClass() const;
virtual const EffectWindowGroup* group() const;
virtual int x() const;

View file

@ -281,6 +281,7 @@ class KWIN_EXPORT EffectWindow
virtual QString caption() const = 0;
virtual QPixmap icon() const = 0;
virtual QString windowClass() const = 0;
virtual const EffectWindowGroup* group() const = 0;
virtual bool isDesktop() const = 0;