X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=nlsop_gui.c;h=f2e8c9128568058606f21e4ab50fb4e5ad2f4c64;hb=0fbb254a433dd25b5938be009d0835e2c6b17184;hp=78cc86b8efb04bd96bc399aa8edc94737c63cf6a;hpb=85ca8485e31042e3890d09979c14cafdb75d077f;p=physik%2Fnlsop.git diff --git a/nlsop_gui.c b/nlsop_gui.c index 78cc86b..f2e8c91 100644 --- a/nlsop_gui.c +++ b/nlsop_gui.c @@ -249,6 +249,17 @@ int nothing(t_event *event,void *allineed) { return 1; } +int send_quit(t_net *net) { + + unsigned char data; + + data=GUI_QUIT; + + network_send_chan(net,0,&data,1); + + return 1; +} + int get_command(t_event *event,void *allineed) { t_net *net; @@ -275,9 +286,10 @@ int get_command(t_event *event,void *allineed) { case GUI_QUIT: /* stop everything */ event_math(0,event,READ,REMOVE); + send_quit(net); network_shutdown(net); - display_shutdown(display); input_shutdown(input); + display_shutdown(display); event_stop(event); return 2; default: