aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-03-23 20:09:12 +0000
committerKarl Heuer1994-03-23 20:09:12 +0000
commit87498171d3cd0cbdc5058c0890103964d334ebd5 (patch)
tree10d8b3e3b6c6c0a5fed8f1a759d3018ddcdc7c5e /src
parent21f69e7e21e73ef59394455bdd79315d5fff4d4d (diff)
downloademacs-87498171d3cd0cbdc5058c0890103964d334ebd5.tar.gz
emacs-87498171d3cd0cbdc5058c0890103964d334ebd5.zip
(x_get_focus_frame): New function.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index dea6db53db2..fb788dd7f58 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2399,6 +2399,17 @@ be shared by the new frame.")
2399#endif /* X10 */ 2399#endif /* X10 */
2400} 2400}
2401 2401
2402Lisp_Object
2403x_get_focus_frame ()
2404{
2405 Lisp_Object xfocus;
2406 if (! x_focus_frame)
2407 return Qnil;
2408
2409 XSET (xfocus, Lisp_Frame, x_focus_frame);
2410 return xfocus;
2411}
2412
2402DEFUN ("focus-frame", Ffocus_frame, Sfocus_frame, 1, 1, 0, 2413DEFUN ("focus-frame", Ffocus_frame, Sfocus_frame, 1, 1, 0,
2403 "Set the focus on FRAME.") 2414 "Set the focus on FRAME.")
2404 (frame) 2415 (frame)