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:
parent
3b87c6ea2d
commit
7c2c213f52
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue