fix resizing windows in RTL mode

now the left border is moved instead of the right one, as it should be :)

to test the patch simply run kwin -reverse, and then open konqui and the config
windows, press each one of the categories and you will see.

svn path=/trunk/kdebase/kwin/; revision=252546
icc-effect-5.14.5
Diego Iastrubni 2003-09-20 10:37:04 +00:00
parent 9ca67c1618
commit 380280cf76
1 changed files with 5 additions and 0 deletions

View File

@ -832,6 +832,11 @@ void Client::setGeometry( int x, int y, int w, int h, bool force )
void Client::resize( int w, int h, bool force )
{ // TODO make this deffered with isResize() ? old kwin did
int deltaX = width() - w;
if (QApplication::reverseLayout()){
move( x() + deltaX, y() );
}
if( !force && frame_geometry.size() == QSize( w, h ))
return;
frame_geometry.setSize( QSize( w, h ));