You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Text input fails in Chromium --app windows; GTK_IM_MODULE=xim restores input #407
I encountered a possible GTK/IME-related input issue with Chromium-based web applications launched using Chromium's --app mode, and I wanted to check whether WebApp Manager is affected by the same behavior.
The issue appears to occur specifically when the website is launched with the --app flag. A normal browser window does not exhibit the problem.
In the affected --app window:
Text fields may show a blinking caret that freezes or behaves incorrectly after focus.
Keyboard input fails to register in the field.
Search boxes and other text inputs are affected.
During debugging, I found that setting the XIM input module before launching the application completely restores normal text input and caret behavior:
export GTK_IM_MODULE=xim
This makes me suspect an interaction between Chromium's --app mode, GTK input-method handling, and Linux IME frameworks.
Steps to Reproduce
Launch a Chromium-based web application using the --app flag.
Open a page containing a text input field or search box.
Click inside the field.
Observe the caret.
Attempt to type.
I tested this with multiple unrelated websites, including Discord, Twitch, YouTube, Hulu, and Crunchyroll.
For comparison, launching the same sites in a normal browser window does not reproduce the issue.
Expected Behavior
Text fields should accept keyboard input normally, with the caret blinking and behaving as expected.
Actual Behavior
When launched using --app, the caret may freeze or behave incorrectly, and keyboard input fails to register.
Workaround
Launching the Chromium-based application with:
GTK_IM_MODULE=xim
Restores normal keyboard input and caret behavior.
Additional Information
I encountered this while developing a separate application that launches websites as standalone Chromium app windows. I have not yet confirmed whether WebApp Manager reproduces the issue, but WebApp Manager uses a similar app-style approach, so I wanted to check whether this behavior is already known or tracked.
If WebApp Manager does not reproduce the issue or does not use the affected configuration, feel free to close the report.
Update:
I tested this with WebApp Manager, and the issue does not reproduce there. Text input and caret behavior work normally in WebApp Manager-created Chromium apps.
I tested it with the following browsers: Brave, Microsoft Edge, and Vivaldi. Same sites, same text fields.
It appears specific to the way my own launcher was starting Chromium with --app (and the GTK IM module interaction in that configuration).
Feel free to close this issue.
Activity
bobbycomet commentedon Aug 18, 2026
Update:
I tested this with WebApp Manager, and the issue does not reproduce there. Text input and caret behavior work normally in WebApp Manager-created Chromium apps.
I tested it with the following browsers: Brave, Microsoft Edge, and Vivaldi. Same sites, same text fields.
It appears specific to the way my own launcher was starting Chromium with --app (and the GTK IM module interaction in that configuration).
Feel free to close this issue.