summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <jeremy.katz@nokia.com>2009-11-17 14:06:10 (GMT)
committerJeremy Katz <jeremy.katz@nokia.com>2009-11-17 14:06:10 (GMT)
commit8fc2eec5b3282665f76f1e0313a03608bf4e7bc1 (patch)
treef021e5067c6c6567f093354be158c15184957615
parent20f7847fce7b41952121367e7889bc58597ca41a (diff)
downloadQt-8fc2eec5b3282665f76f1e0313a03608bf4e7bc1.zip
Qt-8fc2eec5b3282665f76f1e0313a03608bf4e7bc1.tar.gz
Qt-8fc2eec5b3282665f76f1e0313a03608bf4e7bc1.tar.bz2
Check if a window is minimized before drawing it, or reporting it via topLevelAt()
-rw-r--r--src/plugins/graphicssystems/fb_base/fb_base.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/graphicssystems/fb_base/fb_base.cpp b/src/plugins/graphicssystems/fb_base/fb_base.cpp
index 7e00381..a091f73 100644
--- a/src/plugins/graphicssystems/fb_base/fb_base.cpp
+++ b/src/plugins/graphicssystems/fb_base/fb_base.cpp
@@ -69,6 +69,8 @@ QRegion QGraphicsSystemFbScreen::doRedraw()
for (int i = windowStack.length() - 1; i >= 0; i--) {
if (!windowStack[i]->visible())
continue;
+ if (windowStack[i]->window()->isMinimized())
+ continue;
QRect windowRect = windowStack[i]->geometry();
QRect intersect = windowRect.intersected(rect);
QRect windowIntersect = intersect.translated(-windowRect.left(),
@@ -146,7 +148,8 @@ QWidget * QGraphicsSystemFbScreen::topLevelAt(QPoint p)
{
for(int i = 0; i < windowStack.size(); i++) {
if (windowStack[i]->geometry().contains(p, false) &&
- windowStack[i]->visible()) {
+ windowStack[i]->visible() &&
+ !windowStack[i]->window()->isMinimized()) {
return windowStack[i]->window();
}
}