diff options
author | Po Lu <luangruo@yahoo.com> | 2022-02-16 15:40:39 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-02-16 15:40:39 +0800 |
commit | fd2252294b679b1e50ed1aedf4c1a076fbae60e3 (patch) | |
tree | 661688fb8c467b9228560571282e6d79d2799de5 /lisp/term/x-win.el | |
parent | db5d2a4407d9016b09155477ccb6eafe5a17a0dd (diff) | |
download | emacs-fd2252294b679b1e50ed1aedf4c1a076fbae60e3.tar.gz |
Fix frame focus handling with native input
* lisp/term/x-win.el (x-gtk-use-native-input-watcher): Stop
passing frame parameter to `x-internal-focus-input-context'.
* src/xfns.c (Fx_internal_focus_input_context): Focus all focus
frames from all displays.
Diffstat (limited to 'lisp/term/x-win.el')
-rw-r--r-- | lisp/term/x-win.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index 298c23566ed..9ae238661e0 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el @@ -1567,11 +1567,11 @@ EVENT is a preedit-text event." (defun x-gtk-use-native-input-watcher (_symbol newval &rest _ignored) "Variable watcher for `x-gtk-use-native-input'. -If NEWVAL is non-nil and the selected frame is displayed through X, -focus the GTK input context." +If NEWVAL is non-nil, focus the GTK input context of focused +frames on all displays." (when (and (featurep 'gtk) (eq (framep (selected-frame)) 'x)) - (x-internal-focus-input-context newval (selected-frame)))) + (x-internal-focus-input-context newval))) (add-variable-watcher 'x-gtk-use-native-input #'x-gtk-use-native-input-watcher) |