windowrules: Add novrr dynamic window rule (#11370)

This commit is contained in:
Hleb Shauchenka 2025-08-22 11:48:42 +02:00 committed by GitHub
parent 42caff5587
commit fdf1612f0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 18 additions and 1 deletions

View file

@ -802,6 +802,10 @@ void CWindow::applyDynamicRule(const SP<CWindowRule>& r) {
m_windowData.persistentSize = CWindowOverridableVar(true, PRIORITY_WINDOW_RULE);
break;
}
case CWindowRule::RULE_NOVRR: {
m_windowData.noVRR = CWindowOverridableVar(true, priority);
break;
}
default: break;
}
}
@ -821,6 +825,7 @@ void CWindow::updateDynamicRules() {
m_windowData.inactiveBorderColor.unset(PRIORITY_WINDOW_RULE);
m_windowData.renderUnfocused.unset(PRIORITY_WINDOW_RULE);
m_windowData.noVRR.unset(PRIORITY_WINDOW_RULE);
m_idleInhibitMode = IDLEINHIBIT_NONE;