summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-05-30 15:42:42 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-05-30 15:51:33 +0300
commite74361c48822accc0413cae6911efaf6bc7a2b5f (patch)
treea851bbae7f1aac9a46f57877baa2ef72cf82487b /libvo/x11_common.c
parent1ffe8bece5922b344d750394a0fdd4e6e5794c82 (diff)
parent0dd2ddd2bc71bb180811eae73ecc15c526520144 (diff)
downloadmpv-e74361c48822accc0413cae6911efaf6bc7a2b5f.tar.bz2
mpv-e74361c48822accc0413cae6911efaf6bc7a2b5f.tar.xz
Merge svn changes up to r31189
Diffstat (limited to 'libvo/x11_common.c')
-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 056c452b2d..b9da242c46 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -861,6 +861,10 @@ int vo_x11_check_events(struct vo *vo)
XSetWMNormalHints(display, x11->window, &x11->vo_hint);
x11->fs_flip = 0;
break;
+ case DestroyNotify:
+ mp_msg(MSGT_VO, MSGL_WARN, "Our window was destroyed, exiting\n");
+ mplayer_put_key(vo->key_fifo, KEY_CLOSE_WIN);
+ break;
case ClientMessage:
if (Event.xclient.message_type == x11->XAWM_PROTOCOLS &&
Event.xclient.data.l[0] == x11->XAWM_DELETE_WINDOW)