Why do app windows appear behind other app windows?

G'day all!


I've noticed for some time that many (if not all) application windows that start new processes/create new windows end up not displaying those windows because they appear "behind" (beneath/below) the main app window. I'm hoping this is due to a system setting or preference that I'm not configuring correctly.


As a new Mac / OS X user, it's really frustrating (not to mention terribly confusing!) when I make a menu selection in an app, or double-click an archive file in Finder, or anything else that opens a new window, only to see nothing happen! Later, when I'm trying to figure out why I can't continue or do something new, or wonder why the processor usage is up around 45% for no apparent reason, I suddenly (accidentally) find that the new window has actually opened, but only appears beneath whichever window was active at the time.


This is inconsistent but generally repeatable. It happens all the time when trying to install apps in the Finder (for example, when double-clicking a dmg file, the little icon in the Finder window does its animation, but no app install window is visible unless I minimise all the other windows on that desktop). It also happens when opening ZIP or other archive files in the Finder (using BetterZip as an example), and in nearly every app I've tried that brings up a new pane - DevonThinkPro, Activity Monitor, Photoshop CS6, and so on - the pane seems not to appear, but in fact has been opened, just hidden by the main app window.


This happens regardless of whether or not multiple desktops are enabled - that was one of the first things I tried to see if I could figure out why this keeps randomly happening.


Interestingly, apps like Outlook, Transmission, and Chrome generally don't have the same problem - ever. So they are doing something that other apps don't, I just don't know what!


Is there a system setting that I've overlooked, that might help this frustrating and annoying problem?


I should note (to hopefully save some time an effort) that it's not just this laptop. I had the opportunity this afternoon to look at about a dozen Macbook Pros, (including the sensational retina model!), Macbook Airs, and iMacs at a Dick Smith store (where I bought this MBP last week). I tried playing around with Finder (and the few other default installed apps), and exactly the same thing happened with those apps. The Apple specialist at the store was stumped, especially when I showed him the problem on all the machines in the store, so he asked me to describe the problem here and let him know if there's any answer.


So I'll be really interested to see if there is something stupid I'm doing (or not doing!) that might be able to help other people in the same situation.


Any help, suggestions, or advice would be most welcome!


Cheers,

Pete

P.S. I should also note that this exact same thing happens from time to time on Windows 7 x64 Ultimate on my desktop, and in that case it's usually (but not always) related to the start bar settings. Microsoft has no idea, nor do any of their MVPs, so it's definitely something unusual, and it seems to be common to both OSes. Just FYI...

MacBook Pro, Mac OS X (10.7.3)

Posted on Sep 6, 2012 5:35 AM

Reply
8 replies

Sep 11, 2012 12:24 AM in response to PC Pete

OK, I have an update I promised... Unfortunately, nothing seems to have changed.


The steps I took were as follows :

1) Manually shut down (Command-Q) all active applications.

2) Manually delete all the desktops in Mission Control, apart from the one I need to use (which can't be deleted anyway)

3) Delete the com.apple.spaces plist (and the associated lockfile)

4) Shutdown and rebooted.

5) After "Max" did it's 'thang' and rebooted, I verified that there was only one desktop in MC

6) Opened a Finder window (Command-N), and opened (double-clicked) a known good dmg file.

7) The installer window opened up behind the Finder window - again.


This is with one desktop only, and just Finder active. The same thing happens with any .dmg file - randomly, about once every 15 tries, the window opens normally - but I think that has more to do with the Z-order rolling over than anything else.


I've also tried this opening any .dmg (or any file that by default opens with the various Apple apps - Textpad, etc) in any Finder window, and the same darn thing happens!


I've also turned off the dashboard-as-a-separate-space option in Preferences, with no apparent change in behaviour.


I know this seems like such a little thing, but to a brand-spanking-new Mac owner, it's a major problem, because I don't know what to expect when I think I'm doing various things. Well, I know .dmg files are supposed to open in a window to allow me to drag the icon (or run the package, or whatever), but I don't see that happening, and it's driving me nuts, because I'm asking the Mac to do things, and I can't see it doing them! And since I'm a multi-desktop kinda guy, I naturally expect a bundled desktop manager to be able to be useable out-of-the-box, so to speak. It doesn't help one bit that there is absolutely no feedback of any kind when any of these processes takes some time. I'm used to disk activity indicators (I now have MenuMeters installed, so that's nice to have) or spinning cursors, but OS X doesn't seem to do that by default. At least, only a very few apps seem to trigger the cute little spinning wheel thingy, it sure doesn't happen when Finder does time-consuming things; so that makes me even more confused.


I ended up just going back to Finder, looking in my Downloads folder, finding the .dmg file, minimising all windows (which usually at least shows any install windows, but only in a single desktop situation), and manually opening the .dmg from within Finder, then minimising the Finder window, which usually shows up the install window. I've also learned that when the .dmg is opened, it appears in the left-hand side of Finder, so at least I can "find" (pardon the pun) the thing I'm hoping to install. So at least I'm learning stuff!


Now, whether this inappropriate and buggy window behaviour is an 'undocumented feature' of the Spaces application, I just don't know. Nor do I know if this is a legitimate issue with my installation of Lion. Unfortunately, I didn't get to see this happening before the Software Update process told me to install a bunch of OS updates a few minutes after I started using "Max", so I don't know if this is how the unit came configured, or if it's a problem with the 10.7.4 update, or a combination of the update and this unit, or what... I'm reluctant (but not totally averse) to performing a complete OS reinstall, if that's indicated, but from what I know, that's a fairly major undertaking, especially for a bug like the hiding windows thing!


So if anyone could help me figure out where this is going askew, I would very much appreciate the assistance!


And thanks to everyone who's helped out so far, I understand that this appears to be a 'corner case', and any time spent on this problem could be better spent elsewhere! It's a measure of my annoyance that I'm continuing to beg for help here, rather than raising the issue with an Apple specialist (which I understand may not fix the problem, according to some of the references posted here). So if we can fix this here, I'm sure it will be helpful not only to lil' ol' me, but anyone else with a similar problem (and they're out there, that's for sure!).


THanks again for reading all this... Cheers, Pete

Sep 6, 2012 6:45 AM in response to El Vergatario

Ah, I should have anticipated that... No, this happens simply by performing a single click (say, on a menu item) without accidentally bringing the application's main window back on top.


In the case of many install images (dmg files), the default Finder window is quite small; so with just a single Finder window visible on the desktop, if I try this (double-clicking on the dmg file in the Finder), I can see the dmg opening (just a transient window as the dmg is inspected/unpacked), and then in most cases the install window opens behind the Finder window.


I thought it might be a problem with clumsy fingers on the trackpad, so I installed a USB mouse, and was very careful not to move the mouse or otherwise trick the Finder window into thinking it was at the top of the Z-order, and it still happened.


It happened when opening the same dmg multiple times as a test; on 8 of 11 tests, the app install window opened behind the Finder, and 3 times it opened "normally" (i.e. in front of the Finder, as expected). This happens even with apps such as Xcode 4 (it took me quite a while to figure out what was happening, and I'd inadvertently reopened the installer 5 times!)


I hope this answers your question?

Sep 8, 2012 8:46 AM in response to El Vergatario

What a great find!


Unfortunately, there *is* no such plist in the Library/Preferences directory (or below). I seem to have everything _but_ the Spaces plist!


However, this is food for thought. Obviously there's a setting *somewhere*, I just have to find it.


Now, I do understand the difference between opening a window in a different Space (which actually seems to work remarkably well), and opening a window in the current space, but behind all visible windows...


However, the two aren't mutually exclusive - on more than one occasion, a window can be opened in another Space, that Space is switched to, but the window still appears beneath all the other windows (if any) in that Space. But it's far more common to see the issue in the current Space/desktop.


Oh, and it's not just Finder windows - most app install windows hide behind other windows, but I'm not sure if they're part of the Finder?


Either way, it seems Finder doesn't operate as reliably in the modern desktop (with or without a preferred Space) as most 3rd-party apps. And while restarting Finder usually 'fixes' the problem for a few minutes, sooner or later it returns.


Anyway, I'll look for the MIA Spaces/Desktops plist and see what I can find out.


Thanks again for your suggestions!

Sep 8, 2012 11:12 AM in response to PC Pete

There are multiple Library folders, when a ~ is at the beginning of the path name it means your home folder's Library. Unfortunately Apple hides this folder now, but you can get to it by:


1. Go to the Finder (click on the Desktop).

2. Hold down the Option key and select the Go menu.

3. Select Library.

4. Then follow the rest of the path (~/Library/Preferences/com.apple.spaces.plist)

Sep 8, 2012 5:27 PM in response to Martin Pace

I just came back to let you know that I found another Preferences in my home directory... D'oh. You beat me to it, Martin!


I actually found it in terminal (I tend to trust text-mode low level tools much more than GUI tools), and then I figured out how to do the same thing from Lister's preferences. But thank you anyway Martin, I also appreciate learning about the Option-menu clicking and so on. I have much to learn!


OK, that makes more sense now. I'll work with what's there and see if I can characterise (or better yet, fix) the problem.


Thanks again for the responses.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why do app windows appear behind other app windows?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.