chat: disable window timeout after you respond to message

This commit is contained in:
Enrique Santos 2022-05-29 18:19:07 +03:00 committed by flyinghead
parent 71ac212dc7
commit 13bd42bdab
1 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,7 @@ public:
lines.push_back(std::make_pair(WHITE, line)); lines.push_back(std::make_pair(WHITE, line));
buf[0] = '\0'; buf[0] = '\0';
newMessage = true; newMessage = true;
enable_timeout = false;
} }
ImGui::SetKeyboardFocusHere(-1); ImGui::SetKeyboardFocusHere(-1);
} }
@ -125,7 +126,7 @@ public:
void receive(int playerNum, const std::string& msg) void receive(int playerNum, const std::string& msg)
{ {
if (config::GGPOChat) if (config::GGPOChat && !visible)
{ {
visible = true; visible = true;
toggle_timeout(); toggle_timeout();