WABA: If we set "may not move" we mean it! No cheating via Alt-F3!

svn path=/trunk/kdebase/kwin/; revision=50046
This commit is contained in:
Waldo Bastian 2000-05-20 07:54:11 +00:00
parent 7853d20753
commit 7c426bc687
2 changed files with 15 additions and 1 deletions

View file

@ -1193,6 +1193,9 @@ void Client::invalidateWindow()
void Client::iconify()
{
if (!mayMove())
return;
if ( isShade() )
setShade( FALSE );
if ( workspace()->iconifyMeansWithdraw( this ) ) {
@ -1235,12 +1238,14 @@ void Client::killWindow()
void Client::maximize( MaximizeMode m)
{
if (!mayMove())
return;
QRect clientArea = workspace()->clientArea();
if (isShade())
setShade( FALSE );
if (geom_restore.isNull()) {
Events::raise( Events::Maximize );
@ -1285,6 +1290,9 @@ void Client::maximize( MaximizeMode m)
void Client::toggleSticky()
{
if (!mayMove())
return;
setSticky( !isSticky() );
}
@ -1470,6 +1478,9 @@ bool Client::isShade() const
void Client::setShade( bool s )
{
if (!mayMove())
return;
if ( shaded == s )
return;

View file

@ -2005,6 +2005,9 @@ void Workspace::slotWindowOperations()
{
if ( !active_client )
return;
if ( !active_client->mayMove())
return;
QPopupMenu* p = clientPopup( active_client );
p->popup( active_client->mapToGlobal( active_client->windowWrapper()->geometry().topLeft() ) );
}