all repos — fluxbox @ 37a435f1d7e694e32c74c65557558190cb2baf33

custom fork of the fluxbox windowmanager

indentation
fluxgen fluxgen
commit

37a435f1d7e694e32c74c65557558190cb2baf33

parent

93e30412af3d40470fbf077619899b4f77ee6115

1 files changed, 25 insertions(+), 25 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -996,34 +996,34 @@ }

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(), - m_clientlist.end(), - &win); - ClientList::iterator new_pos = find(m_clientlist.begin(), - m_clientlist.end(), - &dest); + ClientList::iterator it = find(m_clientlist.begin(), + m_clientlist.end(), + &win); + ClientList::iterator new_pos = find(m_clientlist.begin(), + m_clientlist.end(), + &dest); - // make sure we found them - if (it == m_clientlist.end() || new_pos==m_clientlist.end()) { - return; - } - //moving a button to the right of itself results in no change - if( new_pos == it) { - 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); + // make sure we found them + if (it == m_clientlist.end() || new_pos==m_clientlist.end()) + return; + + //moving a button to the right of itself results in no change + if (new_pos == it) + 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(); + updateClientLeftWindow(); } /// Update LEFT window atom on all clients.