[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kopete/libkopete/ui
From: Stefan Gehn <sgehn () gmx ! net>
Date: 2003-02-08 0:45:22
[Download RAW message or body]
CVS commit by metz:
make kopeteballoon honor size per display, useful for xinerama with displays of \
different size. Bille tested this code on a single-headed X11 so I assume it works \
well.
M +9 -2 kopeteballoon.cpp 1.12
--- kdenonbeta/kopete/libkopete/ui/kopeteballoon.cpp #1.11:1.12
@@ -120,6 +120,13 @@ void KopeteBalloon::updateMask()
}
- bool bottom = m_anchor.y() + height() > kapp->desktop()->height() - 48,
- right = m_anchor.x() + width() > kapp->desktop()->width() - 48;
+ bool bottom, right;
+ QDesktopWidget* tmp = QApplication::desktop();
+ QRect deskRect;
+ // get screen-geometry for screen our anchor is on
+ // (geometry can differ from screen to screen!
+ deskRect = tmp->screenGeometry(m_anchor);
+
+ bottom = m_anchor.y() + height() > deskRect.height() - 48;
+ right = m_anchor.x() + width() > deskRect.width() - 48;
QPointArray arrow(4);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic