Don't try to grab Windows with invalid or a zero size
authorDominik Holland <dominik.holland@pelagicore.com>
Wed, 12 Dec 2012 13:58:14 +0000 (14:58 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 8 Jan 2013 10:47:50 +0000 (11:47 +0100)
commitd37547add0369d45182271754c0a35032d7de2d3
tree13d6d211c67e61ff24dfe49b5b46d40692a30a0a
parentda33815fbe356d068af413ca1af9237f551e4f03
Don't try to grab Windows with invalid or a zero size

It will end up in LiveLock trying it. Because the Window will never
appear in the Rendering thread and setting the grabContent.

On the other end, grabWindow will never return because it waits for the
RenderingThread to set grabContent

Change-Id: Ia1c365acf033732b3e2e9d9d7dc8e73f9e8f4870
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/quick/items/qquickthreadedwindowmanager.cpp