From 15296c02bebca7e8053cf79ee94e75e8cede4745 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 5d1306e..8a7e01b 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -97,6 +97,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