sdlwindow: Make close button call SIGTERM on self
Should be more reliable for killing children
This commit is contained in:
parent
a2ec78665b
commit
d0cdf4e063
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue