fix window calc bug

This commit is contained in:
vaxerski 2021-11-28 12:43:53 +01:00
parent bf21be1bba
commit 3f58a2539d
1 changed files with 1 additions and 1 deletions

View File

@ -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