It wasn't an over-optimization, there was just a small bug elsewhere.
svn path=/trunk/kdebase/kwin/; revision=168568
This commit is contained in:
parent
147a11b20f
commit
a815fc2f6e
1 changed files with 9 additions and 5 deletions
14
client.cpp
14
client.cpp
|
@ -1570,8 +1570,10 @@ void Client::resizeEvent( QResizeEvent * e)
|
||||||
void Client::mouseMoveEvent( QMouseEvent * e)
|
void Client::mouseMoveEvent( QMouseEvent * e)
|
||||||
{
|
{
|
||||||
if ( !buttonDown ) {
|
if ( !buttonDown ) {
|
||||||
mode = mousePosition( e->pos() );
|
MousePosition newmode = mousePosition( e->pos() );
|
||||||
setMouseCursor( mode );
|
if( newmode != mode )
|
||||||
|
setMouseCursor( newmode );
|
||||||
|
mode = newmode;
|
||||||
geom = geometry();
|
geom = geometry();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1691,6 +1693,8 @@ void Client::mouseMoveEvent( QMouseEvent * e)
|
||||||
// QApplication::syncX(); // process our own configure events synchronously.
|
// QApplication::syncX(); // process our own configure events synchronously.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// these two aren't called at all ... ?!
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Reimplemented to provide move/resize
|
Reimplemented to provide move/resize
|
||||||
*/
|
*/
|
||||||
|
@ -1703,8 +1707,6 @@ void Client::enterEvent( QEvent * )
|
||||||
*/
|
*/
|
||||||
void Client::leaveEvent( QEvent * )
|
void Client::leaveEvent( QEvent * )
|
||||||
{
|
{
|
||||||
if ( !buttonDown )
|
|
||||||
setCursor( arrowCursor );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2180,8 +2182,10 @@ bool Client::x11Event( XEvent * e)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( e->type == LeaveNotify && e->xcrossing.mode == NotifyNormal ) {
|
if ( e->type == LeaveNotify && e->xcrossing.mode == NotifyNormal ) {
|
||||||
if ( !buttonDown )
|
if ( !buttonDown ) {
|
||||||
|
mode = Nowhere;
|
||||||
setCursor( arrowCursor );
|
setCursor( arrowCursor );
|
||||||
|
}
|
||||||
bool lostMouse = !rect().contains( QPoint( e->xcrossing.x, e->xcrossing.y ) );
|
bool lostMouse = !rect().contains( QPoint( e->xcrossing.x, e->xcrossing.y ) );
|
||||||
if ( lostMouse ) {
|
if ( lostMouse ) {
|
||||||
delete autoRaiseTimer;
|
delete autoRaiseTimer;
|
||||||
|
|
Loading…
Reference in a new issue