mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 10:02:17 +00:00
Quit MPlayer if we receive a DestroyNotify event.
This in particular avoids MPlayer continuing to play when a frontend using -wid crashed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31179 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e4fc48153e
commit
5c74db3bf6
@ -931,6 +931,10 @@ int vo_x11_check_events(Display * mydisplay)
|
||||
XSetWMNormalHints(mDisplay, vo_window, &vo_hint);
|
||||
vo_fs_flip = 0;
|
||||
break;
|
||||
case DestroyNotify:
|
||||
mp_msg(MSGT_VO, MSGL_WARN, "Our window was destroyed, exiting\n");
|
||||
mplayer_put_key(KEY_CLOSE_WIN);
|
||||
break;
|
||||
case ClientMessage:
|
||||
if (Event.xclient.message_type == XAWM_PROTOCOLS &&
|
||||
Event.xclient.data.l[0] == XAWM_DELETE_WINDOW)
|
||||
|
Loading…
Reference in New Issue
Block a user