summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-08-21 16:48:31 +0000
committerrubidium <rubidium@openttd.org>2011-08-21 16:48:31 +0000
commit81e352b4b6f7f72715646c7c39d3aec4100ea917 (patch)
treef342faa274e40fe42d39e095a03313fe7742ac35
parentcb93a7a824174f4bfbc602979eab62709c9e5f81 (diff)
downloadopenttd-81e352b4b6f7f72715646c7c39d3aec4100ea917.tar.xz
(svn r22803) -Fix (r22796): clicking should not work either when hiding windows
-rw-r--r--src/window.cpp2
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;
}
}