Get window class.
svn path=/branches/work/kwin_composite/; revision=654513
This commit is contained in:
parent
03da4e3ae5
commit
970f4c4d60
3 changed files with 7 additions and 0 deletions
|
@ -664,6 +664,11 @@ QString EffectWindowImpl::caption() const
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString EffectWindowImpl::windowClass() const
|
||||||
|
{
|
||||||
|
return toplevel->resourceName() + ' ' + toplevel->resourceClass();
|
||||||
|
}
|
||||||
|
|
||||||
QPixmap EffectWindowImpl::icon() const
|
QPixmap EffectWindowImpl::icon() const
|
||||||
{
|
{
|
||||||
if( Client* c = dynamic_cast<Client*>( toplevel ))
|
if( Client* c = dynamic_cast<Client*>( toplevel ))
|
||||||
|
|
|
@ -127,6 +127,7 @@ class EffectWindowImpl : public EffectWindow
|
||||||
virtual double opacity() const;
|
virtual double opacity() const;
|
||||||
virtual QString caption() const;
|
virtual QString caption() const;
|
||||||
virtual QPixmap icon() const;
|
virtual QPixmap icon() const;
|
||||||
|
virtual QString windowClass() const;
|
||||||
virtual const EffectWindowGroup* group() const;
|
virtual const EffectWindowGroup* group() const;
|
||||||
|
|
||||||
virtual int x() const;
|
virtual int x() const;
|
||||||
|
|
|
@ -281,6 +281,7 @@ class KWIN_EXPORT EffectWindow
|
||||||
|
|
||||||
virtual QString caption() const = 0;
|
virtual QString caption() const = 0;
|
||||||
virtual QPixmap icon() const = 0;
|
virtual QPixmap icon() const = 0;
|
||||||
|
virtual QString windowClass() const = 0;
|
||||||
virtual const EffectWindowGroup* group() const = 0;
|
virtual const EffectWindowGroup* group() const = 0;
|
||||||
|
|
||||||
virtual bool isDesktop() const = 0;
|
virtual bool isDesktop() const = 0;
|
||||||
|
|
Loading…
Reference in a new issue