Skip to content

Commit a1ea89c

Browse files
committed
Remove redundant hWnd check
1 parent e11a9ba commit a1ea89c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Source/ExcelDna.IntelliSense/UIMonitor/WindowLocationWatcher.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics;
42
using System.Threading;
53

64
namespace ExcelDna.IntelliSense
@@ -30,8 +28,7 @@ void _windowLocationChangeHook_WinEventReceived(object sender, WinEventHook.WinE
3028
#if DEBUG
3129
Logger.WinEvents.Verbose($"{winEventArgs.EventType} - Window {winEventArgs.WindowHandle:X} ({Win32Helper.GetClassName(winEventArgs.WindowHandle)} - Object/Child {winEventArgs.ObjectId} / {winEventArgs.ChildId} - Thread {winEventArgs.EventThreadId} at {winEventArgs.EventTimeMs}");
3230
#endif
33-
if (winEventArgs.WindowHandle == _hWnd)
34-
LocationChanged?.Invoke(this, EventArgs.Empty);
31+
LocationChanged?.Invoke(this, EventArgs.Empty);
3532
}
3633

3734
public void Dispose()

0 commit comments

Comments
 (0)