Fix crash on groupping floating windows

Resolves #12
This commit is contained in:
ItsDrike 2024-04-15 13:28:02 +02:00
parent bcb375d507
commit 5b976cdff9
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -96,6 +96,12 @@ void newCreateGroup(CWindow* self)
return;
}
// Skip floating windows
if (self->m_bIsFloating) {
Debug::log(LOG, "[dwindle-autogroup] Ignoring autogroup for floating window");
return;
}
Debug::log(LOG, "[dwindle-autogroup] Triggered createGroup for {:x}", self);
// Obtain an instance of the dwindle layout, also run some general pre-conditions