private void timer_Elapsed(object sender, ElapsedEventArgs e)
{
if (NativeHelpers.ActiveApplTitle().Contains(appTitleToDisableOn))
{
Point position = Cursor.Position;
Rectangle rectangle = new Rectangle(position, new Size(1, 1));
if (!rectangle.IntersectsWith(dockRootForm.Bounds))
{
Cursor.Position = dockRootForm.Location;
}
}
}