QPA Integration: Save enabled screens

Since QWindowSystemInterface::handleScreenRemoved would not be called in Integration::handleScreenDisabled, Qt apps would still reference disabled screens resulting in crashes.
This commit is contained in:
Méven Car 2021-02-13 16:00:30 +01:00 committed by Vlad Zahorodnii
parent 3b87c6ea2d
commit 7c2c213f52

View file

@ -154,6 +154,7 @@ void Integration::handleOutputEnabled(AbstractOutput *output)
{
Screen *platformScreen = new Screen(output);
QWindowSystemInterface::handleScreenAdded(platformScreen);
m_screens.insert(output, platformScreen);
if (m_dummyScreen) {
QWindowSystemInterface::handleScreenRemoved(m_dummyScreen);