From 99fec3d24597acaef16b3e2b11b24bf647789919 Mon Sep 17 00:00:00 2001 From: Roman Gilg Date: Mon, 26 Mar 2018 12:53:47 +0200 Subject: [PATCH] [colorcorrection] Apply current color temperature on screen hot plug Summary: Current color temperature must be applied immediately to hot pluged outputs. BUG: 391623 Test Plan: Manually. I'm working on auto tests with the new virtual output classes, but since 5.12.4 will land before I can finish this work, I have to get this fix in without them. Reviewers: #kwin, broulik Reviewed By: broulik Subscribers: martinkostolny, broulik, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D11654 --- colorcorrection/manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/colorcorrection/manager.cpp b/colorcorrection/manager.cpp index 6ef02aa11e..19c506b9b7 100644 --- a/colorcorrection/manager.cpp +++ b/colorcorrection/manager.cpp @@ -71,6 +71,8 @@ void Manager::init() return; } + connect(Screens::self(), &Screens::countChanged, this, &Manager::hardReset); + connect(LogindIntegration::self(), &LogindIntegration::sessionActiveChanged, this, [this](bool active) { if (active) {