mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 20:54:16 +01:00
Merge pull request #1837 from Soreepeong/fix/handleimmdetour-fix
Skip IMM ImGui handling if ImGui is not initialized
This commit is contained in:
commit
33b64e783c
1 changed files with 3 additions and 0 deletions
|
|
@ -496,6 +496,9 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui
|
||||||
private char HandleImmDetour(IntPtr framework, char a2, byte a3)
|
private char HandleImmDetour(IntPtr framework, char a2, byte a3)
|
||||||
{
|
{
|
||||||
var result = this.handleImmHook.Original(framework, a2, a3);
|
var result = this.handleImmHook.Original(framework, a2, a3);
|
||||||
|
if (!ImGuiHelpers.IsImGuiInitialized)
|
||||||
|
return result;
|
||||||
|
|
||||||
return ImGui.GetIO().WantTextInput
|
return ImGui.GetIO().WantTextInput
|
||||||
? (char)0
|
? (char)0
|
||||||
: result;
|
: result;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue