MCPcopy Create free account
hub / github.com/KDE/kwin / unref

Method unref

src/window.cpp:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void Window::unref()
112{
113 Q_ASSERT(m_refCount > 0);
114 --m_refCount;
115 if (m_refCount) {
116 return;
117 }
118 if (m_deleted) {
119 workspace()->removeDeleted(this);
120 }
121 delete this;
122}
123
124QDebug operator<<(QDebug debug, const Window *window)
125{

Callers 10

testCloseTiledWindowMethod · 0.45
operator()Method · 0.45
testDeletedTransientMethod · 0.45
testDoubleClickCloseMethod · 0.45
testConnectorLifetimeMethod · 0.45
testAttachBufferMethod · 0.45
~WorkspaceMethod · 0.45
updateOutputsMethod · 0.45

Calls 2

workspaceFunction · 0.85
removeDeletedMethod · 0.80

Tested by 8

testCloseTiledWindowMethod · 0.36
operator()Method · 0.36
testDeletedTransientMethod · 0.36
testDoubleClickCloseMethod · 0.36
testConnectorLifetimeMethod · 0.36
testAttachBufferMethod · 0.36