output: remove wl_output globals for mirrored displays

ref #6387
This commit is contained in:
Vaxry
2024-06-09 22:28:51 +02:00
parent 121c6ac3ea
commit 1423707dbe
6 changed files with 49 additions and 3 deletions

View File

@@ -184,6 +184,9 @@ void CMonitor::onConnect(bool noRule) {
forceFullFrames = 3; // force 3 full frames to make sure there is no blinking due to double-buffering.
//
if (!activeMonitorRule.mirrorOf.empty())
setMirror(activeMonitorRule.mirrorOf);
g_pEventManager->postEvent(SHyprIPCEvent{"monitoradded", szName});
g_pEventManager->postEvent(SHyprIPCEvent{"monitoraddedv2", std::format("{},{},{}", ID, szName, szShortDescription)});
EMIT_HOOK_EVENT("monitorAdded", this);
@@ -517,6 +520,8 @@ void CMonitor::setMirror(const std::string& mirrorOf) {
g_pCompositor->sanityCheckWorkspaces();
}
events.modeChanged.emit();
}
float CMonitor::getDefaultScale() {