Don't put the close popup entry right under the mouse when the window

is at the bottom screen edge. These delayed geometry computations sometimes
really suck.


svn path=/trunk/KDE/kdebase/workspace/; revision=473691
This commit is contained in:
Luboš Luňák 2005-10-24 14:00:26 +00:00
parent 7fff57dbcf
commit 0ed5a14eb0

View file

@ -996,6 +996,7 @@ void Workspace::showWindowMenu( const QRect &pos, Client* cl )
else
{
QRect area = clientArea(ScreenArea, QPoint(x, y), currentDesktop());
clientPopupAboutToShow(); // needed for sizeHint() to be correct :-/
int popupHeight = p->sizeHint().height();
if (y + popupHeight < area.height())
p->exec( QPoint( x, y ) );