losing focus momentarily, over and over again
losing focus momentarily, over and over again
- Subject: losing focus momentarily, over and over again
- From: Bill Janssen <email@hidden>
- Date: Thu, 7 May 2009 11:41:07 PDT
I'm losing focus, momentarily, over and over again, and I'd like to
figure out whether there's anything I can do about it.
I'm running a number of apps against the window server, like Cocoa
Emacs and Camino. I run a background process that watches (via
Applescript calls to System Events) what's going on, then, if I'm
looking at a Web page or other document, grabs a copy of that
document, and does some stuff with it.
I've noticed this particularly in editors, like Emacs and TextEdit:
when I switch to a new document, I lose focus for a second or two --
plenty long enough to mistype something. Then it comes right back to
my app. A different app doesn't become "toplevel", though -- the
menubar never changes.
I'm guessing that some other app I'm running, probably in this
background process (programs like GNU "enscript", and "ghostscript",
but also like "sips", to create custom Finder icons), is stealing the
focus. Or maybe System Events is doing it. How? Why? Is there any
way I can prevent this from happening?
I know that posting to this list is a bit of a mis-post, but this
seems to be the closest to a "windowServer" list that Apple has, and
I know you folks are familiar with these focus issues.
Bill
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden