From b49242a01742d970e8dfd1439f37a4b2667c0c1b Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Sat, 13 Nov 1999 00:32:36 +0000 Subject: [PATCH] some fixes svn path=/trunk/kdebase/kwin/; revision=33631 --- client.cpp | 13 ++++++++++++- client.h | 8 +++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index c4fd6eca3b..57a587e785 100644 --- a/client.cpp +++ b/client.cpp @@ -829,11 +829,22 @@ void Client::leaveEvent( QEvent * ) } + +/*! + Reimplemented to inform the client about the new window position. + */ +void Client::setGeometry( int x, int y, int w, int h ) +{ + QWidget::setGeometry(x, y, w, h); + sendSynteticConfigureNotify(); +} + /*! Reimplemented to inform the client about the new window position. */ -void Client::moveEvent( QMoveEvent * ) +void Client::move( int x, int y ) { + QWidget::move( x, y ); sendSynteticConfigureNotify(); } diff --git a/client.h b/client.h index 2f087ea3ff..33ffca3454 100644 --- a/client.h +++ b/client.h @@ -124,6 +124,13 @@ public: bool shape() const; void updateShape(); + void setGeometry( int x, int y, int w, int h ); + void setGeometry( const QRect &r ) + { setGeometry( r.left(), r.top(), r.width(), r.height() ); } + void move( int x, int y ); + void move( const QPoint & p ) + { move( p.x(), p.y() ); } + public slots: void iconify(); void closeWindow(); @@ -139,7 +146,6 @@ protected: void mouseMoveEvent( QMouseEvent * ); void enterEvent( QEvent * ); void leaveEvent( QEvent * ); - void moveEvent( QMoveEvent * ); void showEvent( QShowEvent* ); void hideEvent( QHideEvent* ); bool x11Event( XEvent * ); // X11 event