some fixes
svn path=/trunk/kdebase/kwin/; revision=33631
This commit is contained in:
parent
ecec648c11
commit
b49242a017
2 changed files with 19 additions and 2 deletions
13
client.cpp
13
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();
|
||||
}
|
||||
|
||||
|
|
8
client.h
8
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
|
||||
|
|
Loading…
Reference in a new issue