config: default manual animations to false

This commit is contained in:
vaxerski 2023-03-24 22:24:12 +00:00
parent c418007c68
commit 41f7736c85
2 changed files with 3 additions and 3 deletions

View file

@ -76,8 +76,8 @@ void CConfigManager::setDefaultVars() {
configValues["misc:key_press_enables_dpms"].intValue = 0; configValues["misc:key_press_enables_dpms"].intValue = 0;
configValues["misc:always_follow_on_dnd"].intValue = 1; configValues["misc:always_follow_on_dnd"].intValue = 1;
configValues["misc:layers_hog_keyboard_focus"].intValue = 1; configValues["misc:layers_hog_keyboard_focus"].intValue = 1;
configValues["misc:animate_manual_resizes"].intValue = 1; configValues["misc:animate_manual_resizes"].intValue = 0;
configValues["misc:animate_mouse_windowdragging"].intValue = 1; configValues["misc:animate_mouse_windowdragging"].intValue = 0;
configValues["misc:disable_autoreload"].intValue = 0; configValues["misc:disable_autoreload"].intValue = 0;
configValues["misc:enable_swallow"].intValue = 0; configValues["misc:enable_swallow"].intValue = 0;
configValues["misc:swallow_regex"].strValue = STRVAL_EMPTY; configValues["misc:swallow_regex"].strValue = STRVAL_EMPTY;

View file

@ -151,7 +151,7 @@ void Events::listener_monitorFrame(void* owner, void* data) {
const auto ESTRENDERTIME = std::ceil(avg + *PRATSAFE); const auto ESTRENDERTIME = std::ceil(avg + *PRATSAFE);
const auto TIMETOSLEEP = std::floor(MSLEFT - ESTRENDERTIME); const auto TIMETOSLEEP = std::floor(MSLEFT - ESTRENDERTIME);
if (MSLEFT < 1 || MSLEFT < ESTRENDERTIME) if (MSLEFT < 1 || MSLEFT < ESTRENDERTIME || TIMETOSLEEP < 1)
g_pHyprRenderer->renderMonitor(PMONITOR); g_pHyprRenderer->renderMonitor(PMONITOR);
else else
wl_event_source_timer_update(PMONITOR->renderTimer, TIMETOSLEEP); wl_event_source_timer_update(PMONITOR->renderTimer, TIMETOSLEEP);