disable event-driven window movement detection due to insufficient capability. Re-enable polling method with thread safety enhancement

This commit is contained in:
Kang Yu 2020-02-06 18:29:35 -08:00
parent 55851c6847
commit 4ce4f53941
3 changed files with 54 additions and 34 deletions

View file

@ -10,6 +10,7 @@ namespace Ninjacrab.PersistentWindows.SystrayShell
/// <summary>
/// The main entry point for the application.
/// </summary>
static PersistentWindowProcessor pwp;
[STAThread]
static void Main()
{
@ -29,7 +30,7 @@ namespace Ninjacrab.PersistentWindows.SystrayShell
StartSplashForm();
PersistentWindowProcessor pwp = new PersistentWindowProcessor();
pwp = new PersistentWindowProcessor();
pwp.Start();
Application.EnableVisualStyles();
@ -56,5 +57,9 @@ namespace Ninjacrab.PersistentWindows.SystrayShell
thread.Abort();
}
static public void Stop()
{
pwp.Stop();
}
}
}