aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/events/Monitors.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-11-19 13:14:55 +0000
committervaxerski <[email protected]>2022-11-19 13:14:55 +0000
commit0ffaa8d6673c02e9360865c8cde69a606c036af7 (patch)
treec85bf6dcff82a92ae82621f39f433a2fc514008a /src/events/Monitors.cpp
parente887149f257802efdca3df231675c54c911dda9b (diff)
downloadHyprland-0ffaa8d6673c02e9360865c8cde69a606c036af7.tar.gz
Hyprland-0ffaa8d6673c02e9360865c8cde69a606c036af7.zip
Fix minor issues with mirrors
Diffstat (limited to 'src/events/Monitors.cpp')
-rw-r--r--src/events/Monitors.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp
index be598f0f..1924fe22 100644
--- a/src/events/Monitors.cpp
+++ b/src/events/Monitors.cpp
@@ -66,13 +66,6 @@ void Events::listener_newOutput(wl_listener* listener, void* data) {
}
}
- if (PNEWMONITORWRAP && PNEWMONITORWRAP->get()->m_bEnabled) {
- Debug::log(LOG, "Connected an enabled monitor???");
- g_pConfigManager->m_bWantsMonitorReload = true;
- g_pCompositor->scheduleFrameForMonitor(PNEWMONITORWRAP->get());
- return;
- }
-
if (!PNEWMONITORWRAP) {
Debug::log(LOG, "Adding completely new monitor.");
PNEWMONITORWRAP = &g_pCompositor->m_vRealMonitors.emplace_back(std::make_shared<CMonitor>());
@@ -326,8 +319,8 @@ void Events::listener_monitorDestroy(void* owner, void* data) {
CMonitor* pMonitor = nullptr;
- for (auto& m : g_pCompositor->m_vMonitors) {
- if (m->szName == OUTPUT->name) {
+ for (auto& m : g_pCompositor->m_vRealMonitors) {
+ if (m->output == OUTPUT) {
pMonitor = m.get();
break;
}