forked from Bananymous/banan-os
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user