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:
parent
43909c931b
commit
8d00434917
1 changed files with 5 additions and 4 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue