From 7f30475e40927b8223944dbab49b2948c5552dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 10 Oct 2003 12:59:40 +0000 Subject: [PATCH] Read initial states of windows. svn path=/trunk/kdebase/kwin/; revision=257725 --- manage.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/manage.cpp b/manage.cpp index 5f06285845..ff99896503 100644 --- a/manage.cpp +++ b/manage.cpp @@ -399,6 +399,21 @@ bool Client::manage( Window w, bool isMapped ) else if ( info->state() & NET::MaxHoriz ) maximize( Client::MaximizeHorizontal ); + // read other initial states + if( info->state() & NET::Shaded ) + setShade( ShadeNormal ); + if( info->state() & NET::KeepAbove ) + setKeepAbove( true ); + if( info->state() & NET::KeepBelow ) + setKeepBelow( true ); + if( info->state() & NET::SkipTaskbar ) + setSkipTaskbar( true, true ); + if( info->state() & NET::SkipPager ) + setSkipPager( true ); + if( info->state() & NET::DemandsAttention ) + demandAttention(); + if( info->state() & NET::Modal ) + setModal( true ); if( fullscreen_mode != FullScreenHack ) { if(( info->state() & NET::FullScreen ) != 0 && isFullScreenable())