Do not display the mouse cursor in fancy window switchers.

BUG: 165296

svn path=/trunk/KDE/kdebase/workspace/; revision=826357
icc-effect-5.14.5
Martin Gräßlin 2008-06-30 14:58:38 +00:00
parent 48912dd264
commit 50d9cd1be0
4 changed files with 13 additions and 4 deletions

View File

@ -572,6 +572,7 @@ void CoverSwitchEffect::tabBoxAdded( int mode )
{
effects->refTabBox();
effects->setActiveFullScreenEffect( this );
input = effects->createFullScreenInputWindow( this, Qt::BlankCursor );
selectedWindow = effects->currentTabBoxWindowList().indexOf(effects->currentTabBoxWindow());
mActivated = true;
if( animateStart )
@ -623,6 +624,7 @@ void CoverSwitchEffect::tabBoxClosed()
effects->setActiveFullScreenEffect( 0 );
mActivated = false;
effects->unrefTabBox();
effects->destroyInputWindow( input );
effects->addRepaintFull();
}
}

View File

@ -2,7 +2,7 @@
KWin - the KDE window manager
This file is part of the KDE project.
Copyright (C) 2008 Martin Gräßlin <ubuntu@martin-graesslin.com
Copyright (C) 2008 Martin Gräßlin <ubuntu@martin-graesslin.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -65,6 +65,7 @@ class CoverSwitchEffect
TimeLine timeLine;
QRect area;
bool twinview;
Window input;
};
} // namespace

View File

@ -2,7 +2,7 @@
KWin - the KDE window manager
This file is part of the KDE project.
Copyright (C) 2008 Martin Gräßlin <ubuntu@martin-graesslin.com
Copyright (C) 2008 Martin Gräßlin <ubuntu@martin-graesslin.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -457,6 +457,7 @@ void FlipSwitchEffect::postPaintScreen()
{
addFullRepaint = false;
effects->setActiveFullScreenEffect( 0 );
effects->destroyInputWindow( input );
effects->addRepaintFull();
}
effects->postPaintScreen();
@ -492,6 +493,7 @@ void FlipSwitchEffect::tabBoxAdded( int mode )
{
effects->refTabBox();
effects->setActiveFullScreenEffect( this );
input = effects->createFullScreenInputWindow( this, Qt::BlankCursor );
selectedWindow = effects->currentTabBoxWindowList().indexOf(effects->currentTabBoxWindow());
if( !stop && !stopRequested )
{
@ -540,7 +542,10 @@ void FlipSwitchEffect::tabBoxClosed()
}
}
else
effects->setActiveFullScreenEffect( 0 );
{
effects->setActiveFullScreenEffect( 0 );
effects->destroyInputWindow( input );
}
}
}

View File

@ -2,7 +2,7 @@
KWin - the KDE window manager
This file is part of the KDE project.
Copyright (C) 2008 Martin Gräßlin <ubuntu@martin-graesslin.com
Copyright (C) 2008 Martin Gräßlin <ubuntu@martin-graesslin.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -57,6 +57,7 @@ class FlipSwitchEffect
bool twinview;
QRect area;
TimeLine timeLine;
Window input;
};
} // namespace