fullscreen patch from kde-core-devel

svn path=/trunk/kdebase/kwin/; revision=64277
icc-effect-5.14.5
Matthias Ettrich 2000-09-18 15:04:13 +00:00
parent 5998794f2a
commit 8f1a00a0b0
1 changed files with 4 additions and 3 deletions

View File

@ -497,14 +497,15 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
QRect area = workspace()->clientArea();
if ( geom == workspace()->geometry() )
may_move = FALSE; // don't let fullscreen windows be moved around
if ( isMapped || session || isTransient() ) {
placementDone = TRUE;
if ( geom == workspace()->geometry() )
may_move = FALSE; // don't let fullscreen windows be moved around
} else {
if ( (xSizeHint.flags & PPosition) || (xSizeHint.flags & USPosition) ) {
placementDone = TRUE;
if ( windowType() == NET::Normal && !area.contains( geom.topLeft() ) ) {
if ( windowType() == NET::Normal && !area.contains( geom.topLeft() ) && may_move ) {
int tx = geom.x();
int ty = geom.y();
if ( tx >= 0 && tx < area.x() )