From 8d499c62ab4a599403880072e33e215b5e8c6fbd Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 8 Mar 2022 22:14:14 +0100 Subject: [PATCH] let the dock decide its position --- src/events/events.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/events/events.cpp b/src/events/events.cpp index 05ef1dc..fcfb7a0 100644 --- a/src/events/events.cpp +++ b/src/events/events.cpp @@ -303,17 +303,6 @@ CWindow* Events::remapFloatingWindow(int windowID, int forcemonitor) { free(STRUTREPLY); - switch (PWINDOWINARR->getDockAlign()) { - case DOCK_TOP: - PWINDOWINARR->setDefaultPosition(Vector2D(g_pWindowManager->monitors[CURRENTSCREEN].vecPosition.x, g_pWindowManager->monitors[CURRENTSCREEN].vecPosition.y)); - break; - case DOCK_BOTTOM: - PWINDOWINARR->setDefaultPosition(Vector2D(g_pWindowManager->monitors[CURRENTSCREEN].vecPosition.x, g_pWindowManager->monitors[CURRENTSCREEN].vecPosition.y + g_pWindowManager->monitors[CURRENTSCREEN].vecSize.y - PWINDOWINARR->getDefaultSize().y)); - break; - default: - break; - } - Debug::log(LOG, "New dock created, setting default XYWH to: " + std::to_string(PWINDOWINARR->getDefaultPosition().x) + ", " + std::to_string(PWINDOWINARR->getDefaultPosition().y) + ", " + std::to_string(PWINDOWINARR->getDefaultSize().x) + ", " + std::to_string(PWINDOWINARR->getDefaultSize().y));