# HG changeset patch # User reimar # Date 1273860004 0 # Node ID 453095f84e98ce30dd60e70bfeb9c2d7d272f3de # Parent 50eb33ac279b00107a1581cb72a2557363664a7d Quit MPlayer if we receive a DestroyNotify event. This in particular avoids MPlayer continuing to play when a frontend using -wid crashed. diff -r 50eb33ac279b -r 453095f84e98 libvo/x11_common.c --- 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)