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:
parent
7fff57dbcf
commit
0ed5a14eb0
1 changed files with 1 additions and 0 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue