]> Dogcows Code - chaz/openbox/blobdiff - src/frame.cc
fix \'s
[chaz/openbox] / src / frame.cc
index 3b9cb96888bed607bfb871d29b82417ad202ff27..c5b144c5f3cbd4f8104389cb7529c008a77c8fef 100644 (file)
@@ -429,11 +429,14 @@ void OBFrame::grabClient()
 
 void OBFrame::releaseClient()
 {
-  // check if the app has already reparented its window away
   XEvent ev;
+
+  // check if the app has already reparented its window away
   if (XCheckTypedWindowEvent(otk::OBDisplay::display, _client->window(),
                              ReparentNotify, &ev)) {
-    XPutBack(otk::OBDisplay::display, &ev);
+    XPutBackEvent(otk::OBDisplay::display, &ev);
+    // re-map the window since the unmanaging process unmaps it
+    XMapWindow(otk::OBDisplay::display, _client->window());  
   } else {
     // according to the ICCCM - if the client doesn't reparent itself, then we
     // will reparent the window to root for them
This page took 0.025022 seconds and 4 git commands to generate.