Inform decoration about keepabove/below changes.
CCMAIL: 84841-done@bugs.kde.org svn path=/trunk/kdebase/kwin/; revision=331722
This commit is contained in:
parent
f5668e9dff
commit
a35e5cad28
2 changed files with 27 additions and 1 deletions
|
@ -662,7 +662,8 @@ void Client::setKeepAbove( bool b )
|
|||
}
|
||||
keep_above = b;
|
||||
info->setState( keepAbove() ? NET::KeepAbove : 0, NET::KeepAbove );
|
||||
// TODO emit a signal about the change to the style plugin
|
||||
if( decoration != NULL )
|
||||
decoration->emitKeepAboveChanged( keepAbove());
|
||||
workspace()->updateClientLayer( this );
|
||||
updateWindowRules();
|
||||
}
|
||||
|
@ -681,6 +682,8 @@ void Client::setKeepBelow( bool b )
|
|||
}
|
||||
keep_below = b;
|
||||
info->setState( keepBelow() ? NET::KeepBelow : 0, NET::KeepBelow );
|
||||
if( decoration != NULL )
|
||||
decoration->emitKeepBelowChanged( keepBelow());
|
||||
workspace()->updateClientLayer( this );
|
||||
updateWindowRules();
|
||||
}
|
||||
|
|
|
@ -577,6 +577,21 @@ class KDecoration
|
|||
* isShade() to get the current state.
|
||||
*/
|
||||
virtual void shadeChange() = 0;
|
||||
#if KDE_IS_VERSION( 3, 90, 0 )
|
||||
#warning Redo all the XYZChange() virtuals as signals.
|
||||
#endif
|
||||
signals:
|
||||
/**
|
||||
* This signal is emitted whenever the window's keep-above state changes.
|
||||
* @since 3.3
|
||||
*/
|
||||
void keepAboveChanged( bool );
|
||||
/**
|
||||
* This signal is emitted whenever the window's keep-below state changes.
|
||||
* @since 3.3
|
||||
*/
|
||||
void keepBelowChanged( bool );
|
||||
public:
|
||||
/**
|
||||
* This function may be reimplemented to provide custom bound drawing
|
||||
* for transparent moving or resizing of the window.
|
||||
|
@ -748,6 +763,14 @@ class KDecoration
|
|||
* @param set Whether to keep the window below others
|
||||
*/
|
||||
void setKeepBelow( bool set );
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
void emitKeepAboveChanged( bool above ) { emit keepAboveChanged( above ); }
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
void emitKeepBelowChanged( bool below ) { emit keepBelowChanged( below ); }
|
||||
private:
|
||||
KDecorationBridge* bridge_;
|
||||
QWidget* w_;
|
||||
|
|
Loading…
Reference in a new issue