]> Dogcows Code - chaz/openbox/blobdiff - src/openbox.cc
put a header where it belongs
[chaz/openbox] / src / openbox.cc
index 80622c1c426aee4bc80796c818994dea3b081ff7..44d3b8c42cf92872bd21d75d1ce689d0167e0632 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "../version.h"
 #include "openbox.hh"
+#include "client.hh"
 #include "screen.hh"
 #include "otk/property.hh"
 #include "otk/display.hh"
@@ -260,6 +261,7 @@ void Openbox::addClient(Window window, OBClient *client)
 
 void Openbox::removeClient(Window window)
 {
+  _clients[window] = 0;
   ClientMap::iterator it = _clients.find(window);
   if (it != _clients.end())
     _clients.erase(it);
@@ -280,6 +282,5 @@ OBClient *Openbox::findClient(Window window)
     return (OBClient*) 0;
 }
 
-
 }
 
This page took 0.020278 seconds and 4 git commands to generate.