Commit 7956d7b2 authored by David Edmundson's avatar David Edmundson Committed by Nate Graham
Browse files

[shell] Ignore placeholder screens

A placeholder screen is created by Qt when no real screens exist. We
don't want to create panels and containments for those, it is a whole
world of pain.

Plasma has a hook to ignore some screens which is extended with this
check.

CCBUG: 419492


(cherry picked from commit 13fb70fe)
parent 00d80bbb
...@@ -1126,6 +1126,9 @@ bool ShellCorona::isOutputRedundant(QScreen *screen) const ...@@ -1126,6 +1126,9 @@ bool ShellCorona::isOutputRedundant(QScreen *screen) const
if (screen == s) { if (screen == s) {
continue; continue;
} }
if (s->geometry().isNull()) {
return false;
}
const QRect otherGeometry = s->geometry(); const QRect otherGeometry = s->geometry();
......
Markdown is supported
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