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:
@@ -2124,7 +2124,7 @@ static void MouseLoop(MouseClick click, int mousewheel)
|
|||||||
Window *w = FindWindowFromPt(x, y);
|
Window *w = FindWindowFromPt(x, y);
|
||||||
if (w == NULL) return;
|
if (w == NULL) return;
|
||||||
|
|
||||||
if (!MaybeBringWindowToFront(w)) return;
|
if (click != MC_HOVER && !MaybeBringWindowToFront(w)) return;
|
||||||
ViewPort *vp = IsPtInWindowViewport(w, x, y);
|
ViewPort *vp = IsPtInWindowViewport(w, x, y);
|
||||||
|
|
||||||
/* Don't allow any action in a viewport if either in menu of in generating world */
|
/* Don't allow any action in a viewport if either in menu of in generating world */
|
||||||
|
Reference in New Issue
Block a user