       ;; Add monitor callback in input change hook.
       (other-window 1)
       (add-hook 'after-change-functions 'snails-monitor-input nil t)
+      (add-hook 'focus-out-hook 'snails-quit)
       )
 
     ;; Set active flag, use for advice-add detect.

;; Maintainer: Andy Stewart <lazycat.manatee@gmail.com>
;; Copyright (C) 2019, Andy Stewart, all rights reserved.
;; Created: 2019-05-16 21:26:09
;; Version: 3.2
;; Last-Updated: 2019-07-25 08:54:03
;;           By: Andy Stewart
;; URL: http://www.emacswiki.org/emacs/download/snails-core.el
;; Keywords:

;; 2019/07/25
;;      * Set undecorated parameter in `make-frame' function.
;;      * Try to raise snails frame when focus default frame by alt + tab switcher of OS.
;;      * Quit snails when lost input focus.
;;
;; 2019/07/24
;;      * Don't ask user when snails kill buffer of backend process.
