mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-06 10:06:28 +00:00
added hyprctl
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "ThreadManager.hpp"
|
||||
#include "../debug/HyprCtl.hpp"
|
||||
|
||||
CThreadManager::CThreadManager() {
|
||||
m_tMainThread = new std::thread([&]() {
|
||||
@@ -20,6 +21,8 @@ void CThreadManager::handle() {
|
||||
while (3.1415f) {
|
||||
g_pConfigManager->tick();
|
||||
|
||||
HyprCtl::tickHyprCtl();
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::microseconds(1000000 / g_pConfigManager->getInt("max_fps")));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user