aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-03-24 22:24:12 +0000
committervaxerski <[email protected]>2023-03-24 22:24:12 +0000
commit41f7736c8521162cb3ea5f3c003e0643c1bcf616 (patch)
treed868b77811dbeec31a23d9aba31dbcbe702595de
parentc418007c686abc978ef4119976c2231a105a5568 (diff)
downloadHyprland-41f7736c8521162cb3ea5f3c003e0643c1bcf616.tar.gz
Hyprland-41f7736c8521162cb3ea5f3c003e0643c1bcf616.zip
config: default manual animations to false
-rw-r--r--src/config/ConfigManager.cpp4
-rw-r--r--src/events/Monitors.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 68b6ce22..c6a3abd1 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -76,8 +76,8 @@ void CConfigManager::setDefaultVars() {
configValues["misc:key_press_enables_dpms"].intValue = 0;
configValues["misc:always_follow_on_dnd"].intValue = 1;
configValues["misc:layers_hog_keyboard_focus"].intValue = 1;
- configValues["misc:animate_manual_resizes"].intValue = 1;
- configValues["misc:animate_mouse_windowdragging"].intValue = 1;
+ configValues["misc:animate_manual_resizes"].intValue = 0;
+ configValues["misc:animate_mouse_windowdragging"].intValue = 0;
configValues["misc:disable_autoreload"].intValue = 0;
configValues["misc:enable_swallow"].intValue = 0;
configValues["misc:swallow_regex"].strValue = STRVAL_EMPTY;
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp
index ae5095aa..ad0e416b 100644
--- a/src/events/Monitors.cpp
+++ b/src/events/Monitors.cpp
@@ -151,7 +151,7 @@ void Events::listener_monitorFrame(void* owner, void* data) {
const auto ESTRENDERTIME = std::ceil(avg + *PRATSAFE);
const auto TIMETOSLEEP = std::floor(MSLEFT - ESTRENDERTIME);
- if (MSLEFT < 1 || MSLEFT < ESTRENDERTIME)
+ if (MSLEFT < 1 || MSLEFT < ESTRENDERTIME || TIMETOSLEEP < 1)
g_pHyprRenderer->renderMonitor(PMONITOR);
else
wl_event_source_timer_update(PMONITOR->renderTimer, TIMETOSLEEP);