inputMethod: Honor the "private" IBusInputHint

This enum value was added in IBus 1.5.26, forward our own
"sensitive data" enum that way to the IMs.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3162>
This commit is contained in:
Carlos Garnacho 2024-01-30 13:51:59 +01:00
parent ff063acd1f
commit 64d300b525

View File

@ -269,6 +269,8 @@ export const InputMethod = GObject.registerClass({
ibusHints |= IBus.InputHints.UPPERCASE_CHARS;
if (hints & Clutter.InputContentHintFlags.TITLECASE)
ibusHints |= IBus.InputHints.UPPERCASE_WORDS;
if (hints & Clutter.InputContentHintFlags.SENSITIVE_DATA)
ibusHints |= IBus.InputHints.PRIVATE;
this._hints = ibusHints;
if (this._context)