Mercurial > mplayer.hg
changeset 31122:453095f84e98
Quit MPlayer if we receive a DestroyNotify event.
This in particular avoids MPlayer continuing to play when
a frontend using -wid crashed.
author | reimar |
---|---|
date | Fri, 14 May 2010 18:00:04 +0000 |
parents | 50eb33ac279b |
children | b3c85aa7adbf |
files | libvo/x11_common.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/x11_common.c Fri May 14 16:56:43 2010 +0000 +++ b/libvo/x11_common.c Fri May 14 18:00:04 2010 +0000 @@ -931,6 +931,10 @@ 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)