mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-13 05:55:39 +02:00
disable event-driven window movement detection due to insufficient capability. Re-enable polling method with thread safety enhancement
This commit is contained in:
parent
55851c6847
commit
4ce4f53941
3 changed files with 54 additions and 34 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue