top minimize, maximize & close buttons aren't working but only for mac apps in the background

I have been able to click the minimize, maximize & close buttons on all open apps that are in the background (app window is behind another active window) but for some reason I can only use the buttons on non-mac apps. Safari, Mail, iMessages, iTunes, etc won't minimize or close in the background. When I click any of the top buttons they will turn red, yellow, green and stay "on" but the buttons won't do what they should do. I have tried using the button on non-mac apps and the buttons work when the apps are in the background without activating the window by clicking the top bar. The Mac apps require me to click the top bar first or commad+tab the app to be active before the top bars will work. Also, the mac apps won't become active unless I click somewhere on the frame of the window but when I have them open in the background and click inside the window to acitvate them they don't respond. Is there a setting that I messed up somewhere? My wife's mac doesn't have this issue and I have all my setting that I can think of set the same but it hasn't changed the behavior. I did an OS re-install and it didn't fix it either. Anyone have an idea on what I can do to fix this?

iMac, macOS Sierra (10.12.3)

Posted on Apr 6, 2017 1:46 PM

Reply
36 replies

Apr 8, 2017 1:46 PM in response to rywag

Try running this program in your normal account, then copy and paste the output in a reply. The program was created by etresoft, a frequent contributor. Please use copy and paste as screen shots can be hard to read. On the screen with Options, please open Options and check the bottom 2 boxes before running. Click “Share Report” button in the toolbar, select “Copy Report” and then paste into a reply. This will show what is running on your computer. No personal information is shown.

Etrecheck – System Information

Apr 13, 2017 10:45 AM in response to rywag

When you create a new account, it gets set to a default state of various plist preferences files. Then when you try this new account and things all of a sudden work, you can pretty much determine the culprit causing the problem is some plist file that is either corrupted in some way or has some setting that is causing the problem. It simply eliminates the need to look at system problems and lets you narrow it down to just what is wrong with a single user. It doesn't solve the problem, unfortunate, but eliminating a system issue makes it a lot clearer where the problem lies.


So, if you spend a minute to create the new account and then log out of the old account and into the new and things all of a sudden work fine, then think of all the time you'll have saved 😉


Good luck...

Apr 13, 2017 5:39 PM in response to rywag

If only you had done this when first asked - would have saved you and us all a lot of time. Please remember this second account trick for any future weird problems. It really is the thing to do first for really weird stuff like this.


The thing about all those plist files - there are a lot of them and control all kinds of settings. Some apps may not even run if things like license numbers and such are squirreled away in them.


But, now that you have a pretty good case for a corrupt plist file, I would start by booting up in single user mode by using Command+s. Do you have everything on the one internal drive (system and all your /Users files)? If so, then just follow the instructions that are on your screen to do a "fsck" and then mount the boot volume so it's writable.


Then, do the following (all these are Terminal commands and substitute your real user name that is bad for "yourusername"):


cd /Users/yourusername/Library

mv Preferences Preferences.bogus

sync ; sync ; sync

reboot


Don't forget, that you're the "root" user and you can do some real harm if you give a wrong command so be very careful and ask first if you're not clear about anything.


The system will reboot, and you can try to login in. The OS will recreate the Preferences folder and populate with defaults but things will behave differently than you're used to - some in minor ways and some in major ways. If everything works OK, then you can try copying the Preferences over from the bogus folder to the real Preferences folder in some ordered fashion being very careful of putting them in exactly the right place. If you don't understand how to do this, then ask and can give some hints. It's gonna be time consuming as you need to logout and back in and try and find the plist file that is the culprit every time you copy a plist file or group of them.


If you're happy with the way things work with the new set of default preferences you have, then you might not want to even bother finding out what the problem was, but that has to be your decision.


Now the bad news, if it wasn't something in one of the files in your ~/Library/Preferences folder that was causing the problem, then you need to undo moving the Preferences folder (reboot back to single user and do the reverse) and start looking for other places to do something similar - places like ~/Library/Containers or ~/Library/Application Support and on and on. That gets to be a giant pain in the rear. So lets hope you get lucky...


Ask questions if something isn't clear and be careful in single user mode. You really can do some bad things if you're not careful.


Good luck...


ps -- if anyone else sees any problem with this method please speak up. I've never had to do this but seems that it should work. In fact I think rywag should try the method out first on the second user account first before trying it out on your real problem account. The idea being that if there are any side affects that are big problems you will find out about them in the second account rather than the real account. Make sure you have a full backup in case you have to restore anything and double check it's integrity before doing any of this.

Apr 13, 2017 6:07 PM in response to dot.com

I will do this. Sorry I didn't do this in the first place, I tried to and the second account on my machine (an older account for IRAF) wasn't booting for some reason and I wasn't sure what purpose it would serve so I just tried the trouble shooting method with no results. One issue with the P.S. you have, if I do this on the second account I'll never know if it fixes the problem because it doesn't exist on that account. So wouldn't I want to just do in on my main account to solve the issue?

Apr 14, 2017 2:31 AM in response to rywag

So I ended up doing an OS reinstall from the recovery partition but not a clean install and the problem is still persistent. I am thinking I may have to wipe the drive and reinstall the OS but I fear that this may be an issue in the future so I really don't want to take the easy way out. I'd rather figure out the root of the problem so I can fix it if it does happen in the future. Anyone have any idea where this problem could be coming from?

Apr 14, 2017 3:19 PM in response to rywag

The problem is in one of your personal files, not a system file. If it were something in the system, then the second account would have the same problem. So the install served no real purpose. A clean OS install will also make no difference if you restore the bad user account since that is where the problem seems to lie.


Have another idea - long shot but is easy to try. Do the following in a Terminal window for each of the "bad" and "good" user accounts:


defaults read | grep -i window | grep -i min

defaults read | grep -i window | grep -i max


The idea is that there is some setting in some plist in some location that is making some of the app windows minimize and maximize requests behave oddly, so guessing that the setting would have the words "window" and "min" or "window" and "max". Compare the results of the two commands for each of the good and bad accounts and see if there are any differences. If this turns up nothing of consequence try "window" and "back" or "window" and "under", or other keyword combinations that make sense.


Does this seem like it might provide some useful information?


You might also pose this question of what event type could possibly account for this sort of odd window behavior in the Apple Developer forum. In other words what would need to happen if you wanted to see this sort of behavior? I'm not very familiar with app development, so perhaps someone who is might be able to give a clue.


Good luck...

May 3, 2017 1:21 PM in response to dot.com

Sorry it's been so long since you posted this. I did what you said and it printed out a huge list that seemed to include my website blacklist and a lot of other information that didn't really help troubleshoot the problem. I ended up just changing to the other Admin account I had created and have been using that for my main account. I gave full access to the other account folders to this user account but never found a solution for the problem. I know most people wouldn't really complain about something this trivial but it's a big deal when one thing stops working correctly there is something going wrong on the whole. Wish I could fix the issue but alas, nothing has worked.

May 3, 2017 4:02 PM in response to rywag

Well, I said it was a long shot.


But I think if you look closely you will hopefully spot something that looks like it might be applicable. Another thing you should do now is to save the defaults to a file for the working account. Then if the same behavior ever shows it's ugly head on this other account, you can save the defaults and do a diff and see if you spot a difference. See above comments for how to do this.


Another idea is to try and install the Xtra Finder app and see if that breaks things again - but do it to another test account, not the one that is now working OK.


Good luck...

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.

top minimize, maximize & close buttons aren't working but only for mac apps in the background

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