Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
70458eb2
Commit
70458eb2
authored
Dec 21, 2020
by
Vlad Zahorodnii
Browse files
plugins/nightcolor: Handle new color devices
This ensures that new outputs have the right color temperature.
parent
8b03fc9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/nightcolor/nightcolormanager.cpp
View file @
70458eb2
...
...
@@ -17,7 +17,6 @@
#include
<main.h>
#include
<platform.h>
#include
<screens.h>
#include
<workspace.h>
#include
<logind.h>
...
...
@@ -110,7 +109,7 @@ void NightColorManager::init()
KGlobalAccel
::
setGlobalShortcut
(
toggleAction
,
QList
<
QKeySequence
>
());
input
()
->
registerShortcut
(
QKeySequence
(),
toggleAction
,
this
,
&
NightColorManager
::
toggle
);
connect
(
Screens
::
self
(),
&
Screens
::
countChang
ed
,
this
,
&
NightColorManager
::
hardReset
);
connect
(
ColorManager
::
self
(),
&
ColorManager
::
deviceAdd
ed
,
this
,
&
NightColorManager
::
hardReset
);
connect
(
LogindIntegration
::
self
(),
&
LogindIntegration
::
sessionActiveChanged
,
this
,
[
this
](
bool
active
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment