LibGUI: Client window now exits if it loses connection from server

This can be prevented by installing callback for socket errors.
This commit is contained in:
2024-11-10 14:02:23 +02:00
parent cf21eb4b39
commit 6bd51ac345
3 changed files with 46 additions and 38 deletions

View File

@@ -53,8 +53,7 @@ int main()
window->fill_rect(text_x, text_y, text_w, text_h, bg_color);
window->draw_text(text, font, text_x, text_y, fg_color);
if (!window->invalidate(text_x, text_y, text_w, text_h))
is_running = false;
window->invalidate(text_x, text_y, text_w, text_h);
};
while (is_running)