aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/debug
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-07-11 23:56:24 +0200
committervaxerski <[email protected]>2022-07-11 23:56:24 +0200
commitc0c75db62188667a4f42aef1ae6bfd8034093af7 (patch)
tree4ccdaa40a9082554d6f1ccac33e881f99519b1ea /src/debug
parentf461ea3105fbe7979a44d702bd9b2f7ee46a9441 (diff)
downloadHyprland-c0c75db62188667a4f42aef1ae6bfd8034093af7.tar.gz
Hyprland-c0c75db62188667a4f42aef1ae6bfd8034093af7.zip
roll VFR for everyone
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/HyprCtl.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 7aa0017e..519b0ce8 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -271,12 +271,11 @@ void HyprCtl::tickHyprCtl() {
std::string getRequestFromThread(std::string rq) {
// we need to do something to wake hyprland up if VFR is enabled
- static auto *const VFRENABLED = &g_pConfigManager->getConfigValuePtr("experimental:vfr")->intValue;
- if (*VFRENABLED) {
- // TODO: is this safe...?
- // this might be a race condition
- wlr_output_schedule_frame(g_pCompositor->m_vMonitors.front()->output);
- }
+
+ // TODO: is this safe...?
+ // this might be a race condition
+ // tested with 2 instances of `watch -n 0.1 hyprctl splash` and seems to not crash so I'll take that as a yes
+ wlr_output_schedule_frame(g_pCompositor->m_vMonitors.front()->output);
while (HyprCtl::request != "" || HyprCtl::requestMade || HyprCtl::requestReady) {
std::this_thread::sleep_for(std::chrono::milliseconds(5));