indentation

This commit is contained in:
fluxgen 2005-11-22 21:00:07 +00:00
parent 93e30412af
commit 37a435f1d7

View file

@ -996,34 +996,34 @@ void FluxboxWindow::moveClientLeftOf(WinClient &win, WinClient &dest) {
void FluxboxWindow::moveClientRightOf(WinClient &win, WinClient &dest) { void FluxboxWindow::moveClientRightOf(WinClient &win, WinClient &dest) {
frame().moveLabelButtonRightOf(*m_labelbuttons[&win], *m_labelbuttons[&dest]); frame().moveLabelButtonRightOf(*m_labelbuttons[&win], *m_labelbuttons[&dest]);
ClientList::iterator it = find(m_clientlist.begin(), ClientList::iterator it = find(m_clientlist.begin(),
m_clientlist.end(), m_clientlist.end(),
&win); &win);
ClientList::iterator new_pos = find(m_clientlist.begin(), ClientList::iterator new_pos = find(m_clientlist.begin(),
m_clientlist.end(), m_clientlist.end(),
&dest); &dest);
// make sure we found them // make sure we found them
if (it == m_clientlist.end() || new_pos==m_clientlist.end()) { if (it == m_clientlist.end() || new_pos==m_clientlist.end())
return; return;
}
//moving a button to the right of itself results in no change //moving a button to the right of itself results in no change
if( new_pos == it) { if (new_pos == it)
return; return;
}
//remove from list
m_clientlist.erase(it);
//need to insert into the next position
new_pos++;
//insert on the new place
if(new_pos == m_clientlist.end())
m_clientlist.push_back(&win);
else
m_clientlist.insert(new_pos, &win);
updateClientLeftWindow(); //remove from list
m_clientlist.erase(it);
//need to insert into the next position
new_pos++;
//insert on the new place
if (new_pos == m_clientlist.end())
m_clientlist.push_back(&win);
else
m_clientlist.insert(new_pos, &win);
updateClientLeftWindow();
} }
/// Update LEFT window atom on all clients. /// Update LEFT window atom on all clients.