diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-31 00:27:32 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-07-31 00:27:32 +0200 |
| commit | edac94bed14ab208d61f2867e5464ac576781c8b (patch) | |
| tree | 48c010f62bc41ce951181fe8931df1c7729f408b /src/debug | |
| parent | 4610b3d86445243192d814fa9d127c38ad10c8cb (diff) | |
tick hyprctl separately
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 7d7c2dfa..b30c0392 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -592,16 +592,7 @@ 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 - if (!*PNOVFR) - g_pCompositor->scheduleFrameForMonitor(g_pCompositor->m_vMonitors.front().get()); - + while (HyprCtl::request != "" || HyprCtl::requestMade || HyprCtl::requestReady) { std::this_thread::sleep_for(std::chrono::milliseconds(5)); } |
