1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

(svn r20124) -Fix (r20118): Don't bring windows to front by hovering over them.

This commit is contained in:
frosch
2010-07-11 14:35:53 +00:00
parent 0a689a67f5
commit 987417e665

View File

@@ -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 */