fullscreen patch from kde-core-devel

svn path=/trunk/kdebase/kwin/; revision=64277
This commit is contained in:
Matthias Ettrich 2000-09-18 15:04:13 +00:00
parent 5998794f2a
commit 8f1a00a0b0

View file

@ -497,14 +497,15 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
QRect area = workspace()->clientArea();
if ( isMapped || session || isTransient() ) {
placementDone = TRUE;
if ( geom == workspace()->geometry() )
may_move = FALSE; // don't let fullscreen windows be moved around
if ( isMapped || session || isTransient() ) {
placementDone = TRUE;
} 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() )