mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
fix window calc bug
This commit is contained in:
parent
bf21be1bba
commit
3f58a2539d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue