From ef79c6ed07f093d6f40f335734dba8acfe8a09df Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Wed, 13 Feb 2013 10:41:56 +0200 Subject: [PATCH] * vc/ediff-util.el (ediff-recenter): Use `select-frame-set-input-focus' to select `ediff-control-frame' and set input focus correctly on Xfce. Fixes: debbugs:12218 --- lisp/ChangeLog | 6 ++++++ lisp/vc/ediff-util.el | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 77432c00670..172af2f4efd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2013-02-13 Juri Linkov + + * vc/ediff-util.el (ediff-recenter): Use `select-frame-set-input-focus' + to select `ediff-control-frame' and set input focus correctly on Xfce. + (Bug#12218) + 2013-02-13 Juri Linkov * image-mode.el (image-mode-map): diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el index 3fcfcff9a74..fd53aabd33c 100644 --- a/lisp/vc/ediff-util.el +++ b/lisp/vc/ediff-util.el @@ -787,7 +787,12 @@ Reestablish the default three-window display." (frame-live-p ediff-control-frame) (not ediff-use-long-help-message) (not (ediff-frame-iconified-p ediff-control-frame))) - (raise-frame ediff-control-frame)) + (if (fboundp 'select-frame-set-input-focus) + (select-frame-set-input-focus ediff-control-frame) + (raise-frame ediff-control-frame) + (select-frame ediff-control-frame) + (if (fboundp 'focus-frame) + (focus-frame ediff-control-frame)))) ;; Redisplay whatever buffers are showing, if there is a selected difference (let ((control-frame ediff-control-frame) -- 2.39.5