From 970f4c4d60c0f100030baf7031e039573d9eabc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 16 Apr 2007 11:48:14 +0000 Subject: [PATCH] Get window class. svn path=/branches/work/kwin_composite/; revision=654513 --- effects.cpp | 5 +++++ effects.h | 1 + lib/kwineffects.h | 1 + 3 files changed, 7 insertions(+) diff --git a/effects.cpp b/effects.cpp index ca4125eaa4..924af0b4ab 100644 --- a/effects.cpp +++ b/effects.cpp @@ -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( toplevel )) diff --git a/effects.h b/effects.h index c96224f2c3..ae017e7a2c 100644 --- a/effects.h +++ b/effects.h @@ -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; diff --git a/lib/kwineffects.h b/lib/kwineffects.h index dfcb3fe731..04b837264f 100644 --- a/lib/kwineffects.h +++ b/lib/kwineffects.h @@ -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;