From 87498171d3cd0cbdc5058c0890103964d334ebd5 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 23 Mar 1994 20:09:12 +0000 Subject: [PATCH] (x_get_focus_frame): New function. --- src/xfns.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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.") #endif /* X10 */ } +Lisp_Object +x_get_focus_frame () +{ + Lisp_Object xfocus; + if (! x_focus_frame) + return Qnil; + + XSET (xfocus, Lisp_Frame, x_focus_frame); + return xfocus; +} + DEFUN ("focus-frame", Ffocus_frame, Sfocus_frame, 1, 1, 0, "Set the focus on FRAME.") (frame)