From d8b6eac64ede60d42e122cd914f2521d29c578d8 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Mon, 14 Jul 2014 18:40:35 +1200 Subject: [PATCH] Fix mouse event filtering in BackgroundWidget. --- OpenRA.Game/Widgets/BackgroundWidget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Widgets/BackgroundWidget.cs b/OpenRA.Game/Widgets/BackgroundWidget.cs index 7bb94f2ee4..11a674b375 100644 --- a/OpenRA.Game/Widgets/BackgroundWidget.cs +++ b/OpenRA.Game/Widgets/BackgroundWidget.cs @@ -30,7 +30,7 @@ namespace OpenRA.Widgets public override bool HandleMouseInput(MouseInput mi) { - if (ClickThrough || !Bounds.Contains(mi.Location)) + if (ClickThrough || !RenderBounds.Contains(mi.Location)) return false; if (!Draggable || moving && (!TakeMouseFocus(mi) || mi.Button != MouseButton.Left))