fix window calc bug

This commit is contained in:
vaxerski 2021-11-28 12:43:53 +01:00
parent bf21be1bba
commit 3f58a2539d

View file

@ -562,7 +562,7 @@ CWindow* CWindowManager::findWindowAtCursor() {
const auto WORKSPACE = activeWorkspaces[getMonitorFromCursor()->ID]; const auto WORKSPACE = activeWorkspaces[getMonitorFromCursor()->ID];
for (auto& window : windows) { 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 if (cursorPos.x >= window.getPosition().x
&& cursorPos.x <= window.getPosition().x + window.getSize().x && cursorPos.x <= window.getPosition().x + window.getSize().x