some debug to help figure out the xinerama problems; will disable once it's all good.
Will: can you svn up and send the output this generates for you? thanks CCBUG:158406 svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=779405
This commit is contained in:
parent
2f78de3142
commit
b4722d7052
@ -437,6 +437,7 @@ QPoint Widget::popupPosition(const QSize &s) const
|
||||
|
||||
QPoint pos = v->mapFromScene(scenePos());
|
||||
pos = v->mapToGlobal(pos);
|
||||
kDebug() << "==> position is" << scenePos() << v->mapFromScene(scenePos()) << pos;
|
||||
Plasma::View *pv = dynamic_cast<Plasma::View *>(v);
|
||||
|
||||
Plasma::Location loc = Floating;
|
||||
@ -468,6 +469,7 @@ QPoint Widget::popupPosition(const QSize &s) const
|
||||
//are we out of screen?
|
||||
|
||||
QRect screenRect = QApplication::desktop()->screenGeometry(pv ? pv->containment()->screen() : -1);
|
||||
kDebug() << "==> rect for" << (pv ? pv->containment()->screen() : -1) << "is" << screenRect;
|
||||
|
||||
if (pos.rx() + s.width() > screenRect.right()) {
|
||||
pos.rx() -= ((pos.rx() + s.width()) - screenRect.right());
|
||||
|
Loading…
Reference in New Issue
Block a user