https://bugs.kde.org/show_bug.cgi?id=487901
Vlad Zahorodnii <vlad.zahorod...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kwin/-/commit/83502e29a9
                   |                            |4c5972787357f3c5995697b5715
                   |                            |304
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #7 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit 83502e29a94c5972787357f3c5995697b5715304 by Vlad Zahorodnii.
Committed on 07/06/2024 at 15:16.
Pushed by vladz into branch 'master'.

plugins/nightlight: Fix current time changing after updating transitions

When the slow update timer fires, it's going to pass m_next.first as the
current time in order to calculate the next transition timings. After
the timings have been calculated, the slow update timer will be started
with an interval of "todayNow.msecsTo(m_next.first)". Since todayNow
is a reference to m_next.first, the time diff will be 0, which will
throw off the night light manager. To fix that, make a copy of m_next.first
and then pass the copy as the current date time to resetSlowUpdateTimers().

M  +2    -1    src/plugins/nightlight/nightlightmanager.cpp

https://invent.kde.org/plasma/kwin/-/commit/83502e29a94c5972787357f3c5995697b5715304

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to