mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-10 12:35:37 +02:00
reduce cpu load on non-window object
This commit is contained in:
parent
9224d62191
commit
d36bf0c56c
1 changed files with 4 additions and 6 deletions
|
@ -1861,6 +1861,10 @@ namespace PersistentWindows.Common
|
|||
if (hwnd == IntPtr.Zero)
|
||||
return;
|
||||
|
||||
if (idObject != 0)
|
||||
// ignore non-window object (caret etc)
|
||||
return;
|
||||
|
||||
{
|
||||
switch (eventType)
|
||||
{
|
||||
|
@ -1882,12 +1886,6 @@ namespace PersistentWindows.Common
|
|||
|
||||
if (eventType == User32Events.EVENT_OBJECT_DESTROY)
|
||||
{
|
||||
if (idObject != 0)
|
||||
{
|
||||
// ignore non-window object (caret etc)
|
||||
return;
|
||||
}
|
||||
|
||||
noRestoreWindows.Remove(hwnd);
|
||||
debugWindows.Remove(hwnd);
|
||||
if (fullScreenGamingWindows.Contains(hwnd))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue