From 655a0d71e8e0c52825c67089d1889b5657f7761a Mon Sep 17 00:00:00 2001 From: William Moorehouse Date: Sun, 21 Jun 2015 16:26:09 -0400 Subject: [PATCH] Fixed issue where the client continued to reset the mouse position after losing focus --- TrueCraft.Client/TrueCraftGame.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TrueCraft.Client/TrueCraftGame.cs b/TrueCraft.Client/TrueCraftGame.cs index 8935bd6..d0be9ad 100644 --- a/TrueCraft.Client/TrueCraftGame.cs +++ b/TrueCraft.Client/TrueCraftGame.cs @@ -246,7 +246,7 @@ namespace TrueCraft.Client private void OnMouseComponentMove(object sender, MouseMoveEventArgs e) { - if (MouseCaptured) + if (MouseCaptured && IsActive) { var centerX = GraphicsDevice.Viewport.Width / 2; var centerY = GraphicsDevice.Viewport.Height / 2;