shadeChange() ( for the icewm plugin )
svn path=/trunk/kdebase/kwin/; revision=94149
This commit is contained in:
parent
0d00fc700a
commit
4eb2dfa0ee
2 changed files with 18 additions and 0 deletions
16
client.cpp
16
client.cpp
|
@ -1696,6 +1696,16 @@ void Client::stickyChange( bool )
|
|||
{
|
||||
}
|
||||
|
||||
/*!\fn shadeChange( bool shaded )
|
||||
|
||||
Indicates that the window was shaded or unshaded. \a shaded is
|
||||
set respectively. Subclasses may want to indicate the new state
|
||||
graphically, for example with a different icon.
|
||||
*/
|
||||
void Client::shadeChange( bool )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -1904,6 +1914,11 @@ void Client::toggleSticky()
|
|||
setSticky( !isSticky() );
|
||||
}
|
||||
|
||||
void Client::toggleShade()
|
||||
{
|
||||
setShade( !isShade() );
|
||||
}
|
||||
|
||||
void Client::maximize()
|
||||
{
|
||||
if ( isMaximized() )
|
||||
|
@ -2201,6 +2216,7 @@ void Client::setShade( bool s, int hus )
|
|||
info->setState( shaded?NET::Shaded:0, NET::Shaded );
|
||||
|
||||
workspace()->iconifyOrDeiconifyTransientsOf( this );
|
||||
shadeChange( shaded );
|
||||
}
|
||||
|
||||
|
||||
|
|
2
client.h
2
client.h
|
@ -212,6 +212,7 @@ public slots:
|
|||
void maximize( MaximizeMode m );
|
||||
void maximize();
|
||||
void toggleSticky();
|
||||
void toggleShade();
|
||||
void contextHelp();
|
||||
void autoRaise();
|
||||
void shadeHover();
|
||||
|
@ -240,6 +241,7 @@ protected:
|
|||
virtual void activeChange( bool );
|
||||
virtual void maximizeChange( bool );
|
||||
virtual void stickyChange( bool );
|
||||
virtual void shadeChange( bool );
|
||||
|
||||
|
||||
enum MousePosition {
|
||||
|
|
Loading…
Reference in a new issue