Fixed TTY switching (#364)

This commit is contained in:
Vaxry
2022-07-13 18:18:23 +02:00
committed by GitHub
parent ef7ee2fd0f
commit 6708f3b133
10 changed files with 70 additions and 37 deletions

View File

@@ -593,7 +593,7 @@ std::string getRequestFromThread(std::string rq) {
// 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)
wlr_output_schedule_frame(g_pCompositor->m_vMonitors.front()->output);
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));