Remove ClearState log

This commit is contained in:
Soreepeong 2023-12-17 12:40:33 +09:00
parent b910ebc014
commit 4be635be67
2 changed files with 9 additions and 7 deletions

View file

@ -439,7 +439,7 @@ internal sealed unsafe class DalamudIme : IDisposable, IServiceType
ref var textState = ref TextState;
textState.Stb.Cursor = textState.Stb.SelectStart = textState.Stb.SelectEnd;
Log.Information($"{nameof(this.ClearState)}");
// Log.Information($"{nameof(this.ClearState)}");
}
private void LoadCand(HIMC hImc)

View file

@ -112,19 +112,21 @@ internal sealed class WndProcHookManager : IServiceType, IDisposable
if (uMsg == this.unhookSelfMessage)
{
// Remove self from the chain.
SetWindowLongPtrW(hwnd, GWLP.GWLP_WNDPROC, nextProc);
lock (this.wndProcNextDict)
this.wndProcNextDict.Remove(hwnd);
// Even though this message is dedicated for our processing,
// satisfy the expectations by calling the next window procedure.
return CallWindowProcW(
var rv = CallWindowProcW(
(delegate* unmanaged<HWND, uint, WPARAM, LPARAM, LRESULT>)nextProc,
hwnd,
uMsg,
wParam,
lParam);
// Remove self from the chain.
SetWindowLongPtrW(hwnd, GWLP.GWLP_WNDPROC, nextProc);
lock (this.wndProcNextDict)
this.wndProcNextDict.Remove(hwnd);
return rv;
}
var arg = new WndProcOverrideEventArgs(hwnd, ref uMsg, ref wParam, ref lParam);