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:
reimar 2010-05-14 18:00:04 +00:00
parent e4fc48153e
commit 5c74db3bf6
1 changed files with 4 additions and 0 deletions

View File

@ -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)