From 90b92dd29051c33bf05f9c6b6f5182bca412365e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 23 May 2005 11:43:29 +0000 Subject: [PATCH] Temporarily block geometry while (re)setting fullscreen mode, otherwise updateDecoration() can cause resizing and changing the maximize state. BUG: 106019 svn path=/trunk/KDE/kdebase/kwin/; revision=417304 --- geometry.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/geometry.cpp b/geometry.cpp index 95ee762130..8345c33e87 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1974,6 +1974,7 @@ void Client::setFullScreen( bool set, bool user ) if( was_fs == isFullScreen()) return; StackingUpdatesBlocker blocker( workspace()); + ++block_geometry; workspace()->updateClientLayer( this ); // active fullscreens get different layer info->setState( isFullScreen() ? NET::FullScreen : 0, NET::FullScreen ); updateDecoration( false, false ); @@ -1991,6 +1992,8 @@ void Client::setFullScreen( bool set, bool user ) setGeometry( workspace()->clientArea( MaximizeArea, this )); } } + --block_geometry; + setGeometry( geometry(), ForceGeometrySet ); updateWindowRules(); }