From 3969e69d231e05d6639337d271b938b36a1f0658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 22 Dec 2003 10:47:47 +0000 Subject: [PATCH] Oops. Once again, now it compiles. svn path=/trunk/kdebase/kwin/; revision=274323 --- geometry.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index c9fea3bfc8..2c9988c6ee 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -922,19 +922,16 @@ void Client::configureRequest( int value_mask, int rx, int ry, int rw, int rh, i if ( value_mask & CWY ) new_pos.setY( ry ); -#if 0 // clever workaround for applications like xv that want to set // the location to the current location but miscalculate the // frame size due to kwin being a double-reparenting window // manager - if ( ox == 0 && oy == 0 && - nx == x() + clientPos().x() && - ny == y() + clientPos().y() ) + if ( new_pos.x() == x() + clientPos().x() && + new_pos.y() == y() + clientPos().y() ) { - nx = x(); - ny = y(); + new_pos.setX( x()); + new_pos.setY( y()); } -#endif int nw = clientSize().width(); int nh = clientSize().height();