summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 3f6ac8471..789ef9603 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -953,7 +953,7 @@ Window *FindWindowFromPt(int x, int y)
for (wz = _last_z_window; wz != _z_windows;) {
Window *w = *--wz;
- if (IS_INSIDE_1D(x, w->left, w->width) && IS_INSIDE_1D(y, w->top, w->height)) {
+ if (IsInsideBS(x, w->left, w->width) && IsInsideBS(y, w->top, w->height)) {
return w;
}
}