Commit 7c2c213f authored by Méven Car's avatar Méven Car Committed by Vlad Zahorodnii
Browse files

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.
parent 3b87c6ea
...@@ -154,6 +154,7 @@ void Integration::handleOutputEnabled(AbstractOutput *output) ...@@ -154,6 +154,7 @@ void Integration::handleOutputEnabled(AbstractOutput *output)
{ {
Screen *platformScreen = new Screen(output); Screen *platformScreen = new Screen(output);
QWindowSystemInterface::handleScreenAdded(platformScreen); QWindowSystemInterface::handleScreenAdded(platformScreen);
m_screens.insert(output, platformScreen);
if (m_dummyScreen) { if (m_dummyScreen) {
QWindowSystemInterface::handleScreenRemoved(m_dummyScreen); QWindowSystemInterface::handleScreenRemoved(m_dummyScreen);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment