diff options
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 4c7237dd82..5033a0f691 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -364,7 +364,7 @@ static void xrandr_read(struct vo_x11_state *x11) RRCrtcChangeNotifyMask | RROutputChangeNotifyMask); } - XRRScreenResources *r = XRRGetScreenResources(x11->display, x11->rootwin); + XRRScreenResources *r = XRRGetScreenResourcesCurrent(x11->display, x11->rootwin); if (!r) { MP_VERBOSE(x11, "Xrandr doesn't work.\n"); return; @@ -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; |