summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-14 18:00:04 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-14 18:00:04 +0000
commit5c74db3bf65ed828ed5bd56e6421e546c352c712 (patch)
tree3541ca9312b1538791234e1dce4a35a187b3f459 /libvo
parente4fc48153e209f3a0c8de51d9d5eebe82ad33157 (diff)
downloadmpv-5c74db3bf65ed828ed5bd56e6421e546c352c712.tar.bz2
mpv-5c74db3bf65ed828ed5bd56e6421e546c352c712.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 57ff565b2d..5725beb90b 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -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)