diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-12 10:02:12 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-12 10:02:12 +0200 |
| commit | 29e2bb27f6073695aa4f9767f87cd653db5ce811 (patch) | |
| tree | 12844e6633c5c35af0aa31961277522f6ef39a8f /src/debug/HyprCtl.cpp | |
| parent | 2f3b2db83d6fda5ade686157ebd6c27b3468d15b (diff) | |
added misc:no_vfr
Diffstat (limited to 'src/debug/HyprCtl.cpp')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index fb0e3ed4..3dffab12 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -272,10 +272,13 @@ 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 PNOVFR = &g_pConfigManager->getConfigValuePtr("misc:no_vfr")->intValue; + // 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); + if (!*PNOVFR) + 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)); |
