Commit 013e7ae0 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Notifications] Also consider enabled and connected for screen to be checked against

Fixes erroneously enabling do not disturb mode in some situations when having screens mirrored and then closing the lid.
You'll have two overlapping screens but one of them is disabled so should be ignored.
Depending on the order of outputs this may or may not happen (which is why I didn't notice earlier when I tested with my new laptop).

CHANGELOG: Fixed erroneously entering do not disturb mode when there are overlapping *disabled* screens

Differential Revision: https://phabricator.kde.org/D24679
parent 902daff3
......@@ -84,7 +84,7 @@ void MirroredScreensTracker::checkScreensMirrored()
}
for (const KScreen::OutputPtr &checkOutput : outputs) {
if (checkOutput == output) {
if (checkOutput == output || !checkOutput->isConnected() || !checkOutput->isEnabled()) {
continue;
}
......
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