diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 29b5c3bdeb0..dad660fa881 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -320,7 +320,7 @@ void Events::listener_mapWindow(void* owner, void* data) { PWINDOW->updateWindowData(); - // get the swallower before onWindowCreated() because getSwallower() wouldn't find it after if PWINDOW gets auto grouped. + // Verify window swallowing. Get the swallower before calling onWindowCreated(PWINDOW) because getSwallower() won't get it after PWINDOW gets auto grouped. const auto SWALLOWER = PWINDOW->getSwallower(); PWINDOW->m_pSwallowed = SWALLOWER;