Commit e76c2af3 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.

(cherry picked from commit 7c2c213f)
parent 6b28a06e
......@@ -153,6 +153,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);
......
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