diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp index 748ed8746..e512eb43a 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1350,7 +1350,7 @@ Window *FindWindowFromPt(int x, int y) { Window *w; FOR_ALL_WINDOWS_FROM_FRONT(w) { - if (IsInsideBS(x, w->left, w->width) && IsInsideBS(y, w->top, w->height)) { + if (MayBeShown(w) && IsInsideBS(x, w->left, w->width) && IsInsideBS(y, w->top, w->height)) { return w; } } |