make monitor IDs permanent
This commit is contained in:
parent
b9be405d32
commit
c3edb20e04
3 changed files with 3 additions and 2 deletions
|
|
@ -62,6 +62,8 @@ void Events::listener_newOutput(wl_listener* listener, void* data) {
|
|||
const auto PNEWMONITORWRAP = &g_pCompositor->m_vRealMonitors.emplace_back(std::make_shared<CMonitor>());
|
||||
const auto PNEWMONITOR = PNEWMONITORWRAP->get();
|
||||
|
||||
PNEWMONITOR->ID = g_pCompositor->getNextAvailableMonitorID();
|
||||
|
||||
wlr_output_init_render(OUTPUT, g_pCompositor->m_sWLRAllocator, g_pCompositor->m_sWLRRenderer);
|
||||
|
||||
PNEWMONITOR->output = OUTPUT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue