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::moveEvent( QMoveEvent * ) +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::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