Don't disallow fullscreening for windows that have maximum size set,

way too many apps apparently think setting a maximum or fixed size
and then requesting fullscreen is ok.
CCMAIL: 73509-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=284486
This commit is contained in:
Luboš Luňák 2004-02-02 14:15:31 +00:00
parent 43909c931b
commit 8d00434917

View file

@ -1394,14 +1394,15 @@ void Client::resetMaximize()
bool Client::isFullScreenable( bool fullscreen_hack ) const
{
return isFullScreen() // necessary, because for fullscreen windows isMaximizable() returns false
|| (( isNormalWindow() || isOverride())
&& ( isMaximizable() || fullscreen_hack ));
if( fullscreen_hack )
return isNormalWindow() || isOverride();
else // don't check size constrains - some apps request fullscreen despite requesting fixed size
return !isSpecialWindow(); // also better disallow only weird types to go fullscreen
}
bool Client::userCanSetFullScreen() const
{
return isFullScreenable() && isNormalWindow() && fullscreen_mode != FullScreenHack;
return isNormalWindow() && fullscreen_mode != FullScreenHack && isMaximizable();
}
void Client::setFullScreen( bool set, bool user )