sdlwindow: Make close button call SIGTERM on self

Should be more reliable for killing children
This commit is contained in:
Joshua Ashton 2023-10-01 02:06:45 +01:00
parent a2ec78665b
commit d0cdf4e063

View file

@ -6,6 +6,7 @@
#include <string>
#include <linux/input-event-codes.h>
#include <signal.h>
#include "SDL_clipboard.h"
#include "SDL_events.h"
@ -316,8 +317,7 @@ void inputSDLThreadRun( void )
switch( event.window.event )
{
case SDL_WINDOWEVENT_CLOSE:
g_bRun = false;
nudge_steamcompmgr();
raise( SIGTERM );
break;
default:
break;