aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/xfns.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 9ed565adf4a..10d8fab1109 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3143,39 +3143,17 @@ x_get_focus_frame (frame)
3143} 3143}
3144 3144
3145DEFUN ("focus-frame", Ffocus_frame, Sfocus_frame, 1, 1, 0, 3145DEFUN ("focus-frame", Ffocus_frame, Sfocus_frame, 1, 1, 0,
3146 "Set the focus on FRAME.") 3146 "This function is obsolete, and does nothing.")
3147 (frame) 3147 (frame)
3148 Lisp_Object frame; 3148 Lisp_Object frame;
3149{ 3149{
3150 CHECK_LIVE_FRAME (frame, 0);
3151
3152 if (FRAME_X_P (XFRAME (frame)))
3153 {
3154 BLOCK_INPUT;
3155 x_focus_on_frame (XFRAME (frame));
3156 UNBLOCK_INPUT;
3157 return frame;
3158 }
3159
3160 return Qnil; 3150 return Qnil;
3161} 3151}
3162 3152
3163DEFUN ("unfocus-frame", Funfocus_frame, Sunfocus_frame, 0, 0, 0, 3153DEFUN ("unfocus-frame", Funfocus_frame, Sunfocus_frame, 0, 0, 0,
3164 "If a frame has been focused, release it.") 3154 "This function is obsolete, and does nothing.")
3165 () 3155 ()
3166{ 3156{
3167 if (FRAME_X_P (selected_frame))
3168 {
3169 struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (selected_frame);
3170
3171 if (dpyinfo->x_focus_frame)
3172 {
3173 BLOCK_INPUT;
3174 x_unfocus_frame (dpyinfo->x_focus_frame);
3175 UNBLOCK_INPUT;
3176 }
3177 }
3178
3179 return Qnil; 3157 return Qnil;
3180} 3158}
3181 3159