Add bool keepAbove() to EffectWindow

svn path=/trunk/KDE/kdebase/workspace/; revision=969232
This commit is contained in:
Michael Zanetti 2009-05-17 18:26:49 +00:00
parent 55af335968
commit 32ef57aae7
3 changed files with 14 additions and 1 deletions

View file

@ -1407,6 +1407,14 @@ bool EffectWindowImpl::acceptsFocus() const
return client->wantsInput();
}
bool EffectWindowImpl::keepAbove() const
{
const Client* client = dynamic_cast< const Client* >( toplevel );
if( !client )
return true;
return client->keepAbove();
}
bool EffectWindowImpl::isModal() const
{
if( Client* c = dynamic_cast< Client* >( toplevel ))

View file

@ -250,6 +250,7 @@ class EffectWindowImpl : public EffectWindow
virtual bool isDNDIcon() const;
virtual bool isManaged() const; // managed or override-redirect
virtual bool acceptsFocus() const;
virtual bool keepAbove() const;
virtual bool isModal() const;
virtual EffectWindow* findModal();

View file

@ -170,7 +170,7 @@ X-KDE-Library=kwin4_effect_cooleffect
#define KWIN_EFFECT_API_MAKE_VERSION( major, minor ) (( major ) << 8 | ( minor ))
#define KWIN_EFFECT_API_VERSION_MAJOR 0
#define KWIN_EFFECT_API_VERSION_MINOR 81
#define KWIN_EFFECT_API_VERSION_MINOR 82
#define KWIN_EFFECT_API_VERSION KWIN_EFFECT_API_MAKE_VERSION( \
KWIN_EFFECT_API_VERSION_MAJOR, KWIN_EFFECT_API_VERSION_MINOR )
@ -941,6 +941,10 @@ class KWIN_EXPORT EffectWindow
* Returns whether or not the window can accept keyboard focus.
*/
virtual bool acceptsFocus() const = 0;
/**
* Returns whether or not the window is kept above all other windows.
*/
virtual bool keepAbove() const = 0;
virtual bool isModal() const = 0;
virtual EffectWindow* findModal() = 0;