From 8ee4a7df15cbbf4f0b0c0f90933fd6fedf01a309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 14 Jun 2005 15:36:36 +0000 Subject: [PATCH] Let's say this simply doesn't work with shaded windows. svn path=/trunk/KDE/kdebase/kwin/; revision=425378 --- placement.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/placement.cpp b/placement.cpp index b170d32231..4056ca29fc 100644 --- a/placement.cpp +++ b/placement.cpp @@ -567,7 +567,7 @@ void Workspace::slotWindowGrowHorizontal() void Client::growHorizontal() { - if( !isResizable()) + if( !isResizable() || isShade()) return; QRect geom = geometry(); geom.setRight( workspace()->packPositionRight( this, geom.right(), true )); @@ -593,7 +593,7 @@ void Workspace::slotWindowShrinkHorizontal() void Client::shrinkHorizontal() { - if( !isResizable()) + if( !isResizable() || isShade()) return; QRect geom = geometry(); geom.setRight( workspace()->packPositionLeft( this, geom.right(), false )); @@ -612,7 +612,7 @@ void Workspace::slotWindowGrowVertical() void Client::growVertical() { - if( !isResizable()) + if( !isResizable() || isShade()) return; QRect geom = geometry(); geom.setBottom( workspace()->packPositionDown( this, geom.bottom(), true )); @@ -638,7 +638,7 @@ void Workspace::slotWindowShrinkVertical() void Client::shrinkVertical() { - if( !isResizable()) + if( !isResizable() || isShade()) return; QRect geom = geometry(); geom.setBottom( workspace()->packPositionUp( this, geom.bottom(), false ));