mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-02 05:01:56 -07:00
monintor: remove rathandler
is this even used? lets just remove it.
This commit is contained in:
@@ -42,12 +42,6 @@ using namespace Hyprutils::Utils;
|
|||||||
using namespace Hyprutils::OS;
|
using namespace Hyprutils::OS;
|
||||||
using enum NContentType::eContentType;
|
using enum NContentType::eContentType;
|
||||||
|
|
||||||
static int ratHandler(void* data) {
|
|
||||||
g_pHyprRenderer->renderMonitor(((CMonitor*)data)->m_self.lock());
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
CMonitor::CMonitor(SP<Aquamarine::IOutput> output_) : m_state(this), m_output(output_) {
|
CMonitor::CMonitor(SP<Aquamarine::IOutput> output_) : m_state(this), m_output(output_) {
|
||||||
g_pAnimationManager->createAnimation(0.f, m_specialFade, g_pConfigManager->getAnimationPropertyConfig("specialWorkspaceIn"), AVARDAMAGE_NONE);
|
g_pAnimationManager->createAnimation(0.f, m_specialFade, g_pConfigManager->getAnimationPropertyConfig("specialWorkspaceIn"), AVARDAMAGE_NONE);
|
||||||
m_specialFade->setUpdateCallback([this](auto) { g_pHyprRenderer->damageMonitor(m_self.lock()); });
|
m_specialFade->setUpdateCallback([this](auto) { g_pHyprRenderer->damageMonitor(m_self.lock()); });
|
||||||
@@ -277,8 +271,6 @@ void CMonitor::onConnect(bool noRule) {
|
|||||||
if (!found)
|
if (!found)
|
||||||
g_pCompositor->setActiveMonitor(m_self.lock());
|
g_pCompositor->setActiveMonitor(m_self.lock());
|
||||||
|
|
||||||
m_renderTimer = wl_event_loop_add_timer(g_pCompositor->m_wlEventLoop, ratHandler, this);
|
|
||||||
|
|
||||||
g_pCompositor->scheduleFrameForMonitor(m_self.lock(), Aquamarine::IOutput::AQ_SCHEDULE_NEW_MONITOR);
|
g_pCompositor->scheduleFrameForMonitor(m_self.lock(), Aquamarine::IOutput::AQ_SCHEDULE_NEW_MONITOR);
|
||||||
|
|
||||||
PROTO::gamma->applyGammaToState(m_self.lock());
|
PROTO::gamma->applyGammaToState(m_self.lock());
|
||||||
@@ -301,11 +293,6 @@ void CMonitor::onDisconnect(bool destroy) {
|
|||||||
g_pCompositor->arrangeMonitors();
|
g_pCompositor->arrangeMonitors();
|
||||||
}};
|
}};
|
||||||
|
|
||||||
if (m_renderTimer) {
|
|
||||||
wl_event_source_remove(m_renderTimer);
|
|
||||||
m_renderTimer = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_frameScheduler.reset();
|
m_frameScheduler.reset();
|
||||||
|
|
||||||
if (!m_enabled || g_pCompositor->m_isShuttingDown)
|
if (!m_enabled || g_pCompositor->m_isShuttingDown)
|
||||||
|
@@ -149,7 +149,6 @@ class CMonitor {
|
|||||||
bool m_pendingFrame = false; // if we schedule a frame during rendering, reschedule it after
|
bool m_pendingFrame = false; // if we schedule a frame during rendering, reschedule it after
|
||||||
bool m_renderingActive = false;
|
bool m_renderingActive = false;
|
||||||
|
|
||||||
wl_event_source* m_renderTimer = nullptr; // for RAT
|
|
||||||
bool m_ratsScheduled = false;
|
bool m_ratsScheduled = false;
|
||||||
CTimer m_lastPresentationTimer;
|
CTimer m_lastPresentationTimer;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user