From b7b0f427b01e3e7874e4de448bebc311e2b6271f Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Mon, 25 Jun 2001 15:52:58 +0000 Subject: [PATCH] made full_screen windows work again (there's now a namespace around NoBorderClient) and define them to stay on top (works now with qt 2.3.1 as well) svn path=/trunk/kdebase/kwin/; revision=103793 --- client.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client.cpp b/client.cpp index 88652245e4..e5aa85e40e 100644 --- a/client.cpp +++ b/client.cpp @@ -604,10 +604,11 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial ) geom = session->geometry; QRect area = workspace()->clientArea(); - - if ( geom == workspace()->geometry() && inherits( "NoBorderClient" ) ) { + + if ( geom == workspace()->geometry() && inherits( "KWinInternal::NoBorderClient" ) ) { is_fullscreen = TRUE; may_move = FALSE; // don't let fullscreen windows be moved around + setStaysOnTop( TRUE ); // fullscreen windows shall be on top } if ( isMapped || session || isTransient() ) { @@ -758,7 +759,7 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial ) setSkipPager( session->skipPager ); maximize( (MaximizeMode) session->maximize ); geom_restore = session->restore; - } else { + } else if ( !is_fullscreen ){ // window may want to be maximized if ( (info->state() & NET::Max) == NET::Max ) maximize( Client::MaximizeFull );