From 380280cf7685cbd7c924752253779efc32bae55a Mon Sep 17 00:00:00 2001 From: Diego Iastrubni Date: Sat, 20 Sep 2003 10:37:04 +0000 Subject: [PATCH] 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 --- geometry.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/geometry.cpp b/geometry.cpp index bf4bd7f40e..56bc415bcf 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -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 ));