09-10-2008, 11:28 PM #1
X11/Emacs constantly stealing focus, driving me crazy
- Member Since
- Sep 10, 2008
Hi all, first post here. I've searched for a problem like this and I didn't find much.
I often use my MacBook (running OSX 10.5.4) to ssh into my department (Linux) to work. I use Spaces and have X11 in the same space as my terminal, but my other apps (Firefox, Mail etc.) run in other spaces.
Whenever I have a remote emacs window open in X11, I find that X11 steals focus (and changes the active space to its space) quite often. I can sometimes go 15 minutes between incidents, but once it happens it tends to happen several times in a row (within seconds of one another).
This is driving me crazy because it happens so frequently, and I can't seem to figure out why it's doing it. My guess is that it's something involved with X11 keeping a persistent connection to emacs, but I really have no idea. I definitely don't think it's the auto-save feature of emacs, because it happens whether or not I have just saved whatever document I was working on in emacs.
Does anyone know how I can stop this? I'd really appreciate any suggestions.
11-25-2009, 06:47 PM #2
- Member Since
- Nov 25, 2009
this drove me crazy too. I think I fixed it. from an X11 window:
bash-3.2$ defaults write org.x.X11 wm_ffm 1
you may also have to set wm_focus_on_new_window; to see all the defaults, do a
bash-3.2$ defaults read org.x.X11
(EDIT: I had the syntax reversed: 'read' or 'write' has to come before the domain...)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By welsh_flag in forum OS X - Operating SystemReplies: 16Last Post: 09-18-2013, 06:44 PM
By astropig in forum OS X - Operating SystemReplies: 1Last Post: 09-05-2009, 05:09 PM
By Nathzz in forum OS X - Operating SystemReplies: 0Last Post: 07-08-2009, 05:58 AM
By BethanyLieb in forum Switcher HangoutReplies: 6Last Post: 06-02-2007, 04:09 PM
By cazabam in forum OS X - Operating SystemReplies: 3Last Post: 06-14-2006, 05:44 PM