From 3f58a2539d8fc3bf80c0832d3870a3ab00415188 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 28 Nov 2021 12:43:53 +0100 Subject: [PATCH] fix window calc bug --- src/windowManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windowManager.cpp b/src/windowManager.cpp index e0e2a57..dd31e79 100644 --- a/src/windowManager.cpp +++ b/src/windowManager.cpp @@ -562,7 +562,7 @@ CWindow* CWindowManager::findWindowAtCursor() { const auto WORKSPACE = activeWorkspaces[getMonitorFromCursor()->ID]; for (auto& window : windows) { - if (window.getWorkspaceID() == WORKSPACE && !window.getIsFloating()) { + if (window.getWorkspaceID() == WORKSPACE && !window.getIsFloating() && window.getDrawable() > 0) { if (cursorPos.x >= window.getPosition().x && cursorPos.x <= window.getPosition().x + window.getSize().x