From afab911732fbe880069bc7ff5fd91b202f53cc42 Mon Sep 17 00:00:00 2001 From: tokenflow1m Date: Sun, 15 Mar 2026 18:25:48 +0900 Subject: [PATCH] fix: add missing include and flush stdout explicitly Address Copilot review: include for std::setvbuf portability, use std::endl instead of "\n" to guarantee flush on piped stdout. --- electron/native/cursor-monitor/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electron/native/cursor-monitor/src/main.cpp b/electron/native/cursor-monitor/src/main.cpp index 7ac86945..9a811f7b 100644 --- a/electron/native/cursor-monitor/src/main.cpp +++ b/electron/native/cursor-monitor/src/main.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -48,7 +49,7 @@ int main() { if (type != lastType) { lastType = type; - std::cout << "STATE:" << type << "\n"; + std::cout << "STATE:" << type << std::endl; } }