erase from the map more efficiently
This commit is contained in:
parent
4f01802c8c
commit
925262bee2
1 changed files with 1 additions and 4 deletions
|
@ -265,10 +265,7 @@ void Openbox::addClient(Window window, OBClient *client)
|
||||||
|
|
||||||
void Openbox::removeClient(Window window)
|
void Openbox::removeClient(Window window)
|
||||||
{
|
{
|
||||||
_clients[window] = 0;
|
_clients.erase(window);
|
||||||
ClientMap::iterator it = _clients.find(window);
|
|
||||||
if (it != _clients.end())
|
|
||||||
_clients.erase(it);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue