Fix crash on groupping floating windows

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

View file

@ -97,6 +97,12 @@ void newCreateGroup(CWindow* self)
return; 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); Debug::log(LOG, "[dwindle-autogroup] Triggered createGroup for {:x}", self);
// Obtain an instance of the dwindle layout, also run some general pre-conditions // Obtain an instance of the dwindle layout, also run some general pre-conditions