summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-07-11 14:35:53 +0000
committerfrosch <frosch@openttd.org>2010-07-11 14:35:53 +0000
commit987417e6653f2f30556ac7a604333b577f269929 (patch)
treeeee1ac47bdd19bd5c72d3d636365fe3082377c53
parent0a689a67f56e3c9de907488b0fa881f44123ba99 (diff)
downloadopenttd-987417e6653f2f30556ac7a604333b577f269929.tar.xz
(svn r20124) -Fix (r20118): Don't bring windows to front by hovering over them.
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 0fae692df..d8162d439 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2124,7 +2124,7 @@ static void MouseLoop(MouseClick click, int mousewheel)
Window *w = FindWindowFromPt(x, y);
if (w == NULL) return;
- if (!MaybeBringWindowToFront(w)) return;
+ if (click != MC_HOVER && !MaybeBringWindowToFront(w)) return;
ViewPort *vp = IsPtInWindowViewport(w, x, y);
/* Don't allow any action in a viewport if either in menu of in generating world */