diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-07 20:06:29 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-07 20:06:29 +0000 |
| commit | 1b13d34c1e0ef69036de51c289a83da3aaecef34 (patch) | |
| tree | 4c3402e99790c95d55247e4927f4b67068957c9a /src/frame.cc | |
| parent | e5eb783aa22440625d497a07fa079cae93bdaa86 (diff) | |
i think im handling reparent events correctly now, by unmanaging the window and then XMapping the client
Diffstat (limited to 'src/frame.cc')
| -rw-r--r-- | src/frame.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/frame.cc b/src/frame.cc index 55a0cec0..6d46d7b9 100644 --- a/src/frame.cc +++ b/src/frame.cc @@ -436,8 +436,12 @@ void OBFrame::releaseClient() XEvent ev; if (XCheckTypedWindowEvent(otk::OBDisplay::display, _client->window(), ReparentNotify, &ev)) { - // XXX: ob2/bb didn't do this.. look up this process in other wm's! - //XPutBackEvent(otk::OBDisplay::display, &ev); + /* + 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()); } else { // according to the ICCCM - if the client doesn't reparent to |
