mirror of
https://github.com/hyprwm/Hyprland
synced 2026-01-04 10:10:12 +01:00
debugOverlay: fix tick measurement
This commit is contained in:
parent
6821723b44
commit
8bfff87833
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ void CHyprMonitorDebugOverlay::frameData(PHLMONITOR pMonitor) {
|
|||
|
||||
// anim data too
|
||||
const auto PMONITORFORTICKS = g_pHyprRenderer->m_mostHzMonitor ? g_pHyprRenderer->m_mostHzMonitor.lock() : g_pCompositor->m_lastMonitor.lock();
|
||||
if (PMONITORFORTICKS) {
|
||||
if (PMONITORFORTICKS == pMonitor) {
|
||||
if (m_lastAnimationTicks.size() > (long unsigned int)PMONITORFORTICKS->m_refreshRate)
|
||||
m_lastAnimationTicks.pop_front();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue