vrr: add option to fix mouse breaking vrr (#6483)
* option to fix mouse breaking vrr * skip damage on mouse move * remove this-> & cleanup * add cursor:min_refresh_rate to avoid cursor freezing * run clang-format --------- Co-authored-by: UjinT34 <ujin@uvpn.ru>
This commit is contained in:
parent
b2590b58c5
commit
a9d53a2252
7 changed files with 30 additions and 6 deletions
|
|
@ -1763,7 +1763,7 @@ void CHyprRenderer::damageMonitor(CMonitor* pMonitor) {
|
|||
Debug::log(LOG, "Damage: Monitor {}", pMonitor->szName);
|
||||
}
|
||||
|
||||
void CHyprRenderer::damageBox(CBox* pBox) {
|
||||
void CHyprRenderer::damageBox(CBox* pBox, bool skipFrameSchedule) {
|
||||
if (g_pCompositor->m_bUnsafeState)
|
||||
return;
|
||||
|
||||
|
|
@ -1773,7 +1773,8 @@ void CHyprRenderer::damageBox(CBox* pBox) {
|
|||
|
||||
CBox damageBox = {pBox->x - m->vecPosition.x, pBox->y - m->vecPosition.y, pBox->width, pBox->height};
|
||||
damageBox.scale(m->scale);
|
||||
m->addDamage(&damageBox);
|
||||
if (!skipFrameSchedule)
|
||||
m->addDamage(&damageBox);
|
||||
}
|
||||
|
||||
static auto PLOGDAMAGE = CConfigValue<Hyprlang::INT>("debug:log_damage");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue