From 5b8bc65b2b45df768ad6e0dbbad75054cfab3665 Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Fri, 17 Nov 2000 14:18:44 +0000 Subject: [PATCH] more state/mask confusion svn path=/trunk/kdebase/kwin/; revision=71153 --- client.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client.cpp b/client.cpp index 97cff2250d..fc02bf45b6 100644 --- a/client.cpp +++ b/client.cpp @@ -77,9 +77,10 @@ public: m_client->maximize( Client::MaximizeRestore ); } - if ( ( mask & NET::StaysOnTop) != 0 && (state & NET::StaysOnTop) != 0 ) { - m_client->setStaysOnTop( state & NET::StaysOnTop ); - m_client->workspace()->raiseClient( m_client ); + if ( mask & NET::StaysOnTop) { + m_client->setStaysOnTop( (state & NET::StaysOnTop) != 0 ); + if ( m_client->staysOnTop() ) + m_client->workspace()->raiseClient( m_client ); } } private: