]> git.eshelyaron.com Git - emacs.git/commit
Support terminal focus notifications
authorDaniel Colascione <dancol@dancol.org>
Sat, 9 Jun 2018 05:47:27 +0000 (22:47 -0700)
committerDaniel Colascione <dancol@dancol.org>
Sat, 9 Jun 2018 05:51:50 +0000 (22:51 -0700)
commit6fdc3fac5658a7ab142c358cddd90f3db5665ef5
tree543c9c987546e0bf6dc1bf50f4e18dca097436f3
parentf1e65b73ca20f72717d0b50fa5d983668a49bc38
Support terminal focus notifications

* lisp/frame.el (handle-focus-in,handle-focus-out): Make event
argument optional.
(blink-cursor-check): Make sure that the current frame is a
window-system frame before restarting the blink timer. TTY frames
can get focus, but don't need a blink timer because the terminal
will do the blinking.

* lisp/term/xterm.el
(xterm-handle-focus-in,xterm-handle-focus-out): New functions.
(xterm-rxvt-function-map): Recognize focus notification sequences.
(xterm--init-focus-tracking): New function.
(terminal-init-xterm): Call it.
etc/NEWS
lisp/frame.el
lisp/term/xterm.el