Re: something is CONSTANTLY stealing the focus from X11 apps
Re: something is CONSTANTLY stealing the focus from X11 apps
- Subject: Re: something is CONSTANTLY stealing the focus from X11 apps
- From: Jeremy Huddleston Sequoia <email@hidden>
- Date: Sat, 24 Aug 2013 22:10:11 -0700
On Aug 24, 2013, at 20:58, Jim Graham <email@hidden> wrote:
> Is this telling me that Dashboard.app might be a problem? And if so,
> should I do the same check with the other ones? And what would I do
> :from there?
No, you should run the python script that Ken provided in his reply on 12/14/12 to determine what is causing it. Here it is (note that IIRC, there was a small bug in the version he provided which is fixed in this version):
#!/usr/bin/python
import signal
import sys
def signal_handler(signal, frame):
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGQUIT, signal_handler)
from AppKit import *
class MyObserver(NSObject):
def appActivated_(self, notification):
app = notification.userInfo()["NSWorkspaceApplicationKey"]
NSLog(u"activated %@ (%@)", app.localizedName(), app.bundleIdentifier())
ws = NSWorkspace.sharedWorkspace()
nc = ws.notificationCenter()
ob = MyObserver.new()
nc.addObserver_selector_name_object_(ob, "appActivated:", NSWorkspaceDidActivateApplicationNotification, ws)
NSRunLoop.currentRunLoop().run()
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden