From 034c3cd6f2e7d4bb831d629d304941a3cabee26e Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 26 Dec 2021 00:04:31 +0100 Subject: [PATCH] god no dont nvm --- src/events/events.cpp | 4 ++++ src/windowManager.cpp | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/events/events.cpp b/src/events/events.cpp index 2e33112..c8ebcaa 100644 --- a/src/events/events.cpp +++ b/src/events/events.cpp @@ -580,6 +580,10 @@ void Events::eventMapWindow(xcb_generic_event_t* event) { return; } + // bar + if (E->window == g_pWindowManager->barWindowID) + return; + // We check if the window is not on our tile-blacklist and if it is, we have a special treatment procedure for it. // this func also sets some stuff diff --git a/src/windowManager.cpp b/src/windowManager.cpp index 777a8f5..ce2ffa5 100644 --- a/src/windowManager.cpp +++ b/src/windowManager.cpp @@ -1799,11 +1799,6 @@ bool CWindowManager::shouldBeFloatedOnInit(int64_t window) { Debug::log(ERR, "shouldBeFloatedOnInit with an invalid window!"); return true; } - - if (window == barWindowID) { - PWINDOW->setDock(true); - PWINDOW->setDockAlign(DOCK_TOP); - } const auto WINCLASS = getClassName(window);