Loading ...
Sorry, an error occurred while loading the content.
 

Re: MacVim and focus stealing

Expand Messages
  • björn
    ... I did some tweaks (r275). If you start MacVim from the dock and switch to another app while MacVim is loading, then it should no longer steal the focus.
    Message 1 of 3 , Sep 23 9:09 AM
      > > When I launch MacVim and immediately switch to some other application,
      > > MacVim steals the focus after it shows up. Is it possible to avoid
      > > this? Other applications like Mail.app simply appear behind the
      > > application that has the focus.
      >
      > Unfortunately this is a "feature" at the moment...MacVim is forcibly
      > put in focus whenever a new window opens. This hack is there because
      > I could not figure out a good way to start MacVim from a Vim process
      > and to be able to pass command line parameters while doing so. At the
      > moment I use NSTask to do this, since it lets me pass command line
      > paramaters. The downside to this approach is that it does not raise
      > the window, which is why MacVim is forcibly set to be in focus.
      >
      > I'm afraid you are going to have to live with this until I can figure
      > out another solution. It will have to change at some time though,
      > because the current solution is not really acceptable.

      I did some tweaks (r275). If you start MacVim from the dock and
      switch to another app while MacVim is loading, then it should no
      longer steal the focus. On the other hand, if you start MacVim from
      the terminal and do the same thing, then MacVim will steal the focus.

      /Björn

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.