core: move internal structures to monitor pointers (#8266)
This commit is contained in:
parent
b6e226c320
commit
5d4b54b012
24 changed files with 226 additions and 215 deletions
|
|
@ -509,7 +509,7 @@ void CLinuxDMABufV1Protocol::resetFormatTable() {
|
|||
PHLMONITOR mon;
|
||||
auto HLSurface = CWLSurface::fromResource(feedback->surface);
|
||||
if (auto w = HLSurface->getWindow(); w)
|
||||
if (auto m = g_pCompositor->getMonitorFromID(w->m_iMonitorID); m)
|
||||
if (auto m = w->m_pMonitor.lock(); m)
|
||||
mon = m->self.lock();
|
||||
|
||||
if (!mon) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue