make shading work again (double click on titlebar)

svn path=/trunk/kdebase/kwin/; revision=33918
This commit is contained in:
Matthias Ettrich 1999-11-15 15:57:48 +00:00
parent bdd8c87006
commit bd7c253101
2 changed files with 6 additions and 6 deletions

View file

@ -501,7 +501,7 @@ bool Client::unmapNotify( XUnmapEvent& e )
withdraw();
break;
case NormalState:
if ( !mapped && !e.send_event )
if ( ( !mapped || !windowWrapper()->isVisibleTo( this )) && !e.send_event )
return TRUE; // this event was produced by us as well
// maybe we will be destroyed soon. Check this first.
@ -771,7 +771,7 @@ void Client::mouseMoveEvent( QMouseEvent * e)
shaded = FALSE;
}
QPoint globalPos = e->pos() + geometry().topLeft();
QPoint globalPos = e->globalPos(); // pos() + geometry().topLeft();
QPoint p = globalPos + invertedMoveOffset;

View file

@ -666,19 +666,19 @@ void Workspace::grabKey(KeySym keysym, unsigned int mod){
}
XGrabKey(qt_xdisplay(),
XKeysymToKeycode(qt_xdisplay(), keysym), mod,
qt_xrootwin(), TRUE,
qt_xrootwin(), FALSE,
GrabModeSync, GrabModeSync);
XGrabKey(qt_xdisplay(),
XKeysymToKeycode(qt_xdisplay(), keysym), mod | LockMask,
qt_xrootwin(), TRUE,
qt_xrootwin(), FALSE,
GrabModeSync, GrabModeSync);
XGrabKey(qt_xdisplay(),
XKeysymToKeycode(qt_xdisplay(), keysym), mod | NumLockMask,
qt_xrootwin(), TRUE,
qt_xrootwin(), FALSE,
GrabModeSync, GrabModeSync);
XGrabKey(qt_xdisplay(),
XKeysymToKeycode(qt_xdisplay(), keysym), mod | LockMask | NumLockMask,
qt_xrootwin(), TRUE,
qt_xrootwin(), FALSE,
GrabModeSync, GrabModeSync);
}