From 4eaa04d4128a229309e70fc806162b50f1ca64ac Mon Sep 17 00:00:00 2001 From: feos Date: Wed, 15 Mar 2017 19:24:27 +0300 Subject: [PATCH] tastudio: branch text edit popup follows mouse pointer --- .../tools/TAStudio/BookmarksBranchesBox.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs index c6d3d29ed9..10d130420e 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/BookmarksBranchesBox.cs @@ -478,7 +478,10 @@ namespace BizHawk.Client.EmuHawk InitialValue = branch.UserText }; - var result = i.ShowHawkDialog(); + var point = Cursor.Position; + point.Offset(i.Width / -2, i.Height / -2); + + var result = i.ShowHawkDialog(position: point); if (result == DialogResult.OK) { branch.UserText = i.PromptText;