File tree 2 files changed +1
-6
lines changed
2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,6 @@ public static IList<Window> EnumProcessWindows(int processId, IntPtr[] filterHan
46
46
47
47
private static bool EnumWindowCallback ( IntPtr hwnd , int lParam )
48
48
{
49
- if ( ! NativeMethods . IsWindowVisible ( hwnd ) )
50
- {
51
- return true ;
52
- }
53
-
54
49
if ( _filterHandles . Any ( h => h == hwnd ) )
55
50
{
56
51
return true ;
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ private void MenuItemExitClick(object sender, EventArgs e)
299
299
300
300
private void WindowCreated ( object sender , WindowEventArgs e )
301
301
{
302
- if ( e . Handle != IntPtr . Zero && NativeMethods . IsWindowVisible ( e . Handle ) && ! _windows . Any ( w => w . Handle == e . Handle ) )
302
+ if ( e . Handle != IntPtr . Zero && new SystemMenu ( e . Handle , _settings . MenuItems , _settings . LanguageSettings ) . Exists && ! _windows . Any ( w => w . Handle == e . Handle ) )
303
303
{
304
304
NativeMethods . GetWindowThreadProcessId ( e . Handle , out int processId ) ;
305
305
IList < Window > windows = new List < Window > ( ) ;
You can’t perform that action at this time.
0 commit comments