Results 1 to 2 of 2
  1. #1

    Member Since
    Sep 10, 2008
    X11/Emacs constantly stealing focus, driving me crazy
    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.


  2. #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...)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HELP! This is driving me crazy
    By welsh_flag in forum macOS - Operating System
    Replies: 16
    Last Post: 09-18-2013, 05:44 PM
  2. losing focus with X11
    By astropig in forum macOS - Operating System
    Replies: 1
    Last Post: 09-05-2009, 04:09 PM
  3. This is driving me crazy!
    By Nathzz in forum macOS - Operating System
    Replies: 0
    Last Post: 07-08-2009, 04:58 AM
  4. Driving me crazy!
    By BethanyLieb in forum Switcher Hangout
    Replies: 6
    Last Post: 06-02-2007, 03:09 PM
  5. Window focus behaviour under X11
    By cazabam in forum macOS - Operating System
    Replies: 3
    Last Post: 06-14-2006, 04:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts