From 0a283ed7731a819c62762ef15e1e7fafd4b8fde1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 10 Feb 2004 11:46:46 +0000 Subject: [PATCH] Oops, I broke cancelling fullscreen from Alt+F3. svn path=/trunk/kdebase/kwin/; revision=286754 --- geometry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index 57455cfaa0..30b0ab0b62 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1404,7 +1404,8 @@ bool Client::isFullScreenable( bool fullscreen_hack ) const bool Client::userCanSetFullScreen() const { - return isNormalWindow() && fullscreen_mode != FullScreenHack && isMaximizable(); + return isNormalWindow() && fullscreen_mode != FullScreenHack + && ( isMaximizable() || isFullScreen()); // isMaximizable() is false for isFullScreen() } void Client::setFullScreen( bool set, bool user )