aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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)