summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
authorTracerneo <Tracerneo@users.noreply.github.com>2016-01-31 00:05:58 +0100
committerwm4 <wm4@nowhere>2016-01-31 00:10:20 +0100
commitca9124cd07100b94d99563ff4d1a5df0bdad6eab (patch)
treecdf843af549d790777195da7973a5015473905c5 /video/out/x11_common.c
parente42a08340b85760f83d6c3a63215f397296dabc7 (diff)
downloadmpv-ca9124cd07100b94d99563ff4d1a5df0bdad6eab.tar.bz2
mpv-ca9124cd07100b94d99563ff4d1a5df0bdad6eab.tar.xz
x11: stop waiting for MapNotify when WM_STATE changes
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 5c53ed4c34..5033a0f691 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -1069,7 +1069,9 @@ int vo_x11_check_events(struct vo *vo)
vo_x11_dnd_handle_selection(vo, &Event.xselection);
break;
case PropertyNotify:
- if (Event.xproperty.atom == XA(x11, _NET_FRAME_EXTENTS)) {
+ if (Event.xproperty.atom == XA(x11, _NET_FRAME_EXTENTS) ||
+ Event.xproperty.atom == XA(x11, WM_STATE))
+ {
if (!x11->pseudo_mapped && !x11->parent) {
MP_VERBOSE(x11, "not waiting for MapNotify\n");
x11->pseudo_mapped = true;