GUI/ShowDesktop.cs
changeset 179 a3530106314b
parent 176 c16fd81b520a
child 344 3145aadca3d2
     1.1 --- a/GUI/ShowDesktop.cs	Tue Sep 07 18:32:37 2010 +0000
     1.2 +++ b/GUI/ShowDesktop.cs	Tue Sep 07 18:40:00 2010 +0000
     1.3 @@ -116,7 +116,7 @@
     1.4          // search if the reference window is behind the worker window
     1.5          IntPtr reference = NativeMethods.FindWindowEx(
     1.6            IntPtr.Zero, workerWindow, null, referenceWindowCaption);
     1.7 -        showDesktopDetected = reference == referenceWindow.Handle;
     1.8 +        showDesktopDetected = reference != IntPtr.Zero;
     1.9        } else {
    1.10          // if there is no worker window, then nothing can hide the reference
    1.11          showDesktopDetected = false;