Attachments or new Windows opening behind current one

Lately I have had a couple of customers call letting me know that when they open an attachment in an email or when their program opens a new window it is appearing behind all other windows on the monitor, not on top as usual. When a new windows is opening behind an existing window it is normally because there is a delay in the system.

Since this was happening on different programs and at different businesses, specifically Windows Live Mail 2012 and Dentrix, I would not presume they were related, however they were.

While researching for this article I found many different issues with the same end, new programs opening behind existing ones, emails opening behind the client and more.
It appears that something was in common with them, recent Windows updates. Not a specific update since these issues have been occurring for years. From what I can tell the people had recently run or Windows had run its update.

Regardless of what programs are doing it and regardless of why it is happening the fix is pretty easy, yet difficult. It is easy because you only need to change one number, regardless of its value to “0” (zero). It is difficult because it is being done in the registry of your computer. The registry is literally the DNA of Windows and if you muck it up, you can trash your entire system.

Danger

The first thing we are going to do is backup the registry in case something goes wrong.
Let’s get started. First, In Windows 10, click in your “search” or “Cortana” box, in Windows 7 click on your “start” button and in the “run” box, or if you have Windows 8 and are at the app window just start typing in “regedit”.

Win8Regedit

Win10RegeditClick on the Regedit icon. A new windows appears, it may be behind others you already had open.

registry

The first thing we want to do is back it up for safety. In the upper left corner click on “File” and then “Export”.

Once again a new windows will appear (maybe behind all the others). At the bottom left of that window, in a section marked “Export range” make sure “All” is selected. See the red circle below.

RegistryExportNext in the left column click on “This PC” or your equivalent. See the green circle above. This will change what appears in the main white box.

Using the handle on the right, scroll to your “C:” drive. Red circle in the image below.

RegistryExport2Double-click on your “C:” drive and under file name (green circle above) type in “registryBU” then click the “Save” button. You have now saved a backup directly to the root directory, now if things go wrong you can more easily get to it.

Let us continue with the fix. You still should have the “Registry Editor” on your display, using the navigation and arrows on the left side click on the arrows and navigate to “Computer / HKEY_CURRENT_USER / Control Panel”. Click on the word “Desktop” under “Control Panel”.

registrynavigate

The items listed should be in alphabetical order, scroll down using the right side scroll bar and find “ForegroundLockTimeout”.

ForegroundDouble-click on the text “ForegroundLockTimeout” and a new window will appear.

ForegroundDWordChange the value in “Value Data” to “0”, a zero with no quotes. It does not matter if ‘Hexadecimal’ or ‘Decimal’ is selected to the right, zero is zero in both instances.

Click on “OK” to close the little screen then close the Registry Editor either via the “X” in the upper right or by going to “File” and then “Exit” in the upper left corner.

All that is left is to reboot your computer and life should be good again.

Until we meet again, have a virus free week.

16 thoughts on “Attachments or new Windows opening behind current one

  1. I tried it and it did not work
    I notice your DWORD image is for 32 bit
    My computer is 64bit will the value be the same
    I have been battling with this problem for a week
    Sick of Windows 10

  2. I generally have little success following fixes like this, but the clear explanation was easy to follow, and fixed my problem quickly. Thank you so much!

  3. yup all i had to do was type a 0. You incredible person you. If I could I would hug you.

    I have vision problems and at first I didn’t understand what was happening.

    Then I would go to task manager and hit maximize.

    But y?

    Anywho all I know is it happened one day after an update. Ugh. Eyes roll. Windoze.

    But yeah I finally found this page after trying several things.

    Someone give this person a raise. Give me a better job.

    Test yo stuff…

  4. Thank you for this post.

    This mostly solved the problem on my computer. Attachments within my email client once again open in the forefront. Images open in the foreground from Explorer. However, if I click on an icon on the desktop that is visible off to the side of my browser, it opens behind the current window for some, but not all applications.

    It’s a wonder Mac does not have greater market share.

  5. You’re a legend! Worked first time. I’ve had weeks of this problem searching for an answer. Many, many thanks.

  6. This fix only fixes the problem for a day or two then I’m right back to where I started. Simply rebooting the computer does the same thing, fixed for a couple of days then everything opens behind Crome.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.