summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/fbconvenience/qfbscreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platformsupport/fbconvenience/qfbscreen.cpp')
-rw-r--r--src/platformsupport/fbconvenience/qfbscreen.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/platformsupport/fbconvenience/qfbscreen.cpp b/src/platformsupport/fbconvenience/qfbscreen.cpp
index 04aa9f2fae..566f84c9ea 100644
--- a/src/platformsupport/fbconvenience/qfbscreen.cpp
+++ b/src/platformsupport/fbconvenience/qfbscreen.cpp
@@ -74,15 +74,15 @@ bool QFbScreen::event(QEvent *event)
void QFbScreen::addWindow(QFbWindow *window)
{
mWindowStack.prepend(window);
- if (!mBackingStores.isEmpty()) {
+ if (!mPendingBackingStores.isEmpty()) {
//check if we have a backing store for this window
- for (int i = 0; i < mBackingStores.size(); ++i) {
- QFbBackingStore *bs = mBackingStores.at(i);
+ for (int i = 0; i < mPendingBackingStores.size(); ++i) {
+ QFbBackingStore *bs = mPendingBackingStores.at(i);
// this gets called during QWindow::create() at a point where the
// invariant (window->handle()->window() == window) is broken
if (bs->window() == window->window()) {
window->setBackingStore(bs);
- mBackingStores.removeAt(i);
+ mPendingBackingStores.removeAt(i);
break;
}
}
@@ -295,5 +295,14 @@ QRegion QFbScreen::doRedraw()
return touchedRegion;
}
+QFbWindow *QFbScreen::windowForId(WId wid) const
+{
+ for (int i = 0; i < mWindowStack.count(); ++i)
+ if (mWindowStack[i]->winId() == wid)
+ return mWindowStack[i];
+
+ return 0;
+}
+
QT_END_NAMESPACE