summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
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)