From 64d300b5251a2a5dd107a020fef91471a9c5b04c Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 30 Jan 2024 13:51:59 +0100 Subject: [PATCH] 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: --- js/misc/inputMethod.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/misc/inputMethod.js b/js/misc/inputMethod.js index b393972ec..d8c3e62f0 100644 --- a/js/misc/inputMethod.js +++ b/js/misc/inputMethod.js @@ -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)