- /*
- If the app reparented itself, then we unmanage the window. This causes
- the window to be unmapped, so to be nice to it, we remap the window
- here. We don't put the event back onto the stack because we put it there
- in the first place.
- */
- XMapWindow(otk::OBDisplay::display, _client->window());
+ XPutBackEvent(otk::OBDisplay::display, &ev);
+ // re-map the window since the unmanaging process unmaps it
+ XMapWindow(otk::OBDisplay::display, _client->window());