]> Dogcows Code - chaz/openbox/blobdiff - src/xeventhandler.cc
manages windows that exist before running.
[chaz/openbox] / src / xeventhandler.cc
index 7cd5257abe86a832be9579f40332e2af0f2abf78..5d5273779200eb1c4aaa27bbba1c8e5f8fb5b1eb 100644 (file)
@@ -231,8 +231,11 @@ void OBXEventHandler::unmapNotify(const XUnmapEvent &e)
 {
   OBClient *client = Openbox::instance->findClient(e.window);
   if (!client) return;
-  
-  Openbox::instance->screen(client->screen())->unmanageWindow(client);
+
+  if (client->ignore_unmaps == 0)
+    Openbox::instance->screen(client->screen())->unmanageWindow(client);
+  else
+    client->ignore_unmaps--;
 }
 
 
This page took 0.022547 seconds and 4 git commands to generate.