]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_get_focus_frame): New function.
authorKarl Heuer <kwzh@gnu.org>
Wed, 23 Mar 1994 20:09:12 +0000 (20:09 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 23 Mar 1994 20:09:12 +0000 (20:09 +0000)
src/xfns.c

index dea6db53db201e51a3e42772a87d754df46deae1..fb788dd7f58f614e436420dd6dcd1fbb54ab69e1 100644 (file)
@@ -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)