x11: stop waiting for MapNotify when WM_STATE changes

Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
Tracerneo 2016-01-31 00:05:58 +01:00 committed by wm4
parent e42a08340b
commit ca9124cd07
1 changed files with 3 additions and 1 deletions

View File

@ -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;