Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Windows losing focus.

I am reposting my question of two weeks ago in a little different manner in the hopes someone - from Apple or otherwise - might be able to help.


Since the first time I downloaded and installed OS X 10.9 (Mavericks) I have had multiple issues across both Apple and 3rd party applications with the windows losing focus. I have reset the SMC, zapped the PRAM, reinstalled Mavericks, deleted old, unused applications, checked others for compatibility (some are compatible, some are being updated by their vendors, and some are questionable but ones I use almost daily). A couple of times the problem seems to have self-corrected but in the past 3 weeks the norm has been every open window losing focus within 10 seconds of being opened. To regain the focus for the window I have to tap my Magic Trackpad. This can be very annoying and frustrating when trying to type an email, enter a URL in Safari's , Firefox's, or Chrome's address bar, or simply type something in one of my Microsoft Office 2011 applications or any other application, for that matter.


I have read other people's postings about this on other forums, followed their advice - short of a full, clean install - and still the issue persists. If anyone at Apple is aware of this issue, I hope they are working on a fix. If they have an interim fix, I would appreciate knowing what it is.


Thanks to all for any assistance you can provide!

Mac Pro, OS X Mavericks (10.9)

Posted on Nov 12, 2013 1:43 PM

Reply
22 replies

Jul 7, 2014 8:16 PM in response to notes386

In my case it was a Safari extension causing focus to be lost. The Handoff 1.0.4 extension, as part of Handoffapp.com, was causing the behavior. Turning that off resolved the problem. It will be a moot issue once iOS 8 is out, but Handoff app allowed the sharing of links from a laptop/desktop machine to any individual or all iOS devices with one click. Very nifty widget, ahead of its time.


-Sofa

Jul 19, 2014 12:08 PM in response to Trekker56

Use the following Python code for finding the app which is causing the loss of focus


• Enter the following in a text file called findfocusapp.py


#!/usr/bin/python


from AppKit import NSWorkspace

import time

t = range(1,100)

for i in t:

time.sleep(3)

activeAppName = NSWorkspace.sharedWorkspace().activeApplication()['NSApplicationName']

print activeAppName


• Place this file on your desktop.

• Open Terminal.

• In Terminal, change directory to your Desktop by typing: cd ~/Desktop

• In Terminal, run the python code by typing: python findfocusapp.py

• This python code will repeatedly print out the app that has focus.

• Go to the app where windows lose focus and do thing as usual.

• When the window loses focus, stop what you are doing then watch what is printed in Terminal to find which app or plug-in is causing the problem.

Jul 19, 2014 6:15 PM in response to Trekker56

I have suddenly had this problem with mail.app only. I do have Little Snitch installed and after deleting five "invalid rules" within Little Snitch's database, the problem went away. By the way, I also have a beta version of Indev Mailtags (4.0) installed and it is possible the latest beta update caused this.


Hope this helps anyone else with this frustrating issue.

Windows losing focus.

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