EZAuto_static_v0.1.4
EZAuto v0.1.4: Automatic Input Method Switching for English and Chinese | Smart IME Auto-Switch Tool for Windows
fix: prevent context menu dismissal and enable graceful exit
-
FocusMonitor callback: use GA_ROOTOWNER instead of GA_ROOT to
correctly attribute owned popup windows (e.g., right-click menus)
to their owning top-level window. Previously, GA_ROOT would treat
a context menu as a separate application, triggering an unnecessary
IME switch whose simulated keystrokes dismissed the menu. -
ConsoleHandler: replace the broken PostThreadMessage approach with
a PeekMessage loop guarded by the g_running flag. The original code
posted WM_QUIT from a separate console handler thread, so the main
message loop never received it and the program could not exit
gracefully. Now setting g_running = false causes the message loop
to terminate cleanly. -
Switch Bugs
-
Fixed logging format