fullscreen patch from kde-core-devel
svn path=/trunk/kdebase/kwin/; revision=64277
This commit is contained in:
parent
5998794f2a
commit
8f1a00a0b0
1 changed files with 4 additions and 3 deletions
|
@ -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() )
|
||||
|
|
Loading…
Reference in a new issue