From f9a449fec2fa66100e70fd843e130a7fd0ef3323 Mon Sep 17 00:00:00 2001 From: Eric Soderquist Date: Sun, 5 Aug 2018 09:01:15 -0800 Subject: [PATCH] fix(mouseshapes): remove shapes from all connected windows --- Controller.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Controller.cs b/Controller.cs index b506a1e..bd9b7e6 100644 --- a/Controller.cs +++ b/Controller.cs @@ -613,7 +613,12 @@ private void MouseDraw(MainWindow main, Point p) if (ellipsesQueue.Count > 30) //this is arbitrary { Shape shapeToRemove = ellipsesQueue.Dequeue(); - main.mouseDragCanvas.Children.Remove(shapeToRemove); + + // Remove this shape from all connected monitors + foreach (MainWindow window in windows) + { + window.mouseDragCanvas.Children.Remove(shapeToRemove); + } } }