mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 07:10:02 +01:00
monintor: remove rathandler
is this even used? lets just remove it.
This commit is contained in:
parent
b5433bb753
commit
e6bb809663
2 changed files with 0 additions and 14 deletions
|
|
@ -42,12 +42,6 @@ using namespace Hyprutils::Utils;
|
|||
using namespace Hyprutils::OS;
|
||||
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_) {
|
||||
g_pAnimationManager->createAnimation(0.f, m_specialFade, g_pConfigManager->getAnimationPropertyConfig("specialWorkspaceIn"), AVARDAMAGE_NONE);
|
||||
m_specialFade->setUpdateCallback([this](auto) { g_pHyprRenderer->damageMonitor(m_self.lock()); });
|
||||
|
|
@ -277,8 +271,6 @@ void CMonitor::onConnect(bool noRule) {
|
|||
if (!found)
|
||||
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);
|
||||
|
||||
PROTO::gamma->applyGammaToState(m_self.lock());
|
||||
|
|
@ -301,11 +293,6 @@ void CMonitor::onDisconnect(bool destroy) {
|
|||
g_pCompositor->arrangeMonitors();
|
||||
}};
|
||||
|
||||
if (m_renderTimer) {
|
||||
wl_event_source_remove(m_renderTimer);
|
||||
m_renderTimer = nullptr;
|
||||
}
|
||||
|
||||
m_frameScheduler.reset();
|
||||
|
||||
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_renderingActive = false;
|
||||
|
||||
wl_event_source* m_renderTimer = nullptr; // for RAT
|
||||
bool m_ratsScheduled = false;
|
||||
CTimer m_lastPresentationTimer;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue