From 5b976cdff9330fa2dfd869f7bfed50ba86ca23ad Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 15 Apr 2024 13:28:02 +0200 Subject: [PATCH] Fix crash on groupping floating windows Resolves #12 --- src/plugin.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugin.cpp b/src/plugin.cpp index d79046d..41500d7 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -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