ibusManager: Ensure to spawn --xim on non-wayland sessions
This (mistakenly) now only depends on signals triggered on Wayland sessions. Hardcoding the XIM support on X11 sessions will make input in some clients work again. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/1690
This commit is contained in:
parent
a96753f085
commit
1a0ec782b5
@ -1,7 +1,7 @@
|
||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||
/* exported getIBusManager */
|
||||
|
||||
const { Gio, GLib, IBus } = imports.gi;
|
||||
const { Gio, GLib, IBus, Meta } = imports.gi;
|
||||
const Signals = imports.signals;
|
||||
|
||||
const IBusCandidatePopup = imports.ui.ibusCandidatePopup;
|
||||
@ -55,7 +55,7 @@ var IBusManager = class {
|
||||
this._ibus.set_watch_ibus_signal(true);
|
||||
this._ibus.connect('global-engine-changed', this._engineChanged.bind(this));
|
||||
|
||||
this._spawn();
|
||||
this._spawn(Meta.is_wayland_compositor() ? [] : ['--xim']);
|
||||
}
|
||||
|
||||
_spawn(extraArgs = []) {
|
||||
|
Loading…
Reference in New Issue
Block a user